kubernetes: k8s.io/kubernetes/pkg/controller/podgc Index | Files | Directories

package podgc

import "k8s.io/kubernetes/pkg/controller/podgc"

Package podgc contains a very simple pod "garbage collector" implementation, PodGCController, that runs in the controller manager. If the number of pods in terminated phases (right now either Failed or Succeeded) surpasses a configurable threshold, the controller will delete pods in terminated state until the system reaches the allowed threshold again. The PodGCController prioritizes pods to delete by sorting by creation timestamp and deleting the oldest objects first. The PodGCController will not delete non-terminated pods.

Index

Package Files

doc.go gc_controller.go

type PodGCController Uses

type PodGCController struct {
    // contains filtered or unexported fields
}

func NewPodGC Uses

func NewPodGC(kubeClient clientset.Interface, podInformer coreinformers.PodInformer, terminatedPodThreshold int) *PodGCController

func (*PodGCController) Run Uses

func (gcc *PodGCController) Run(stop <-chan struct{})

Directories

PathSynopsis
config
config/v1alpha1

Package podgc imports 16 packages (graph) and is imported by 13 packages. Updated 2019-04-06. Refresh now. Tools for package owners.