top

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.

Imports 13 package(s)

  1. k8s.io/kubernetes/pkg/util/wait
  2. k8s.io/kubernetes/pkg/controller/framework
  3. k8s.io/kubernetes/pkg/util/metrics
  4. k8s.io/kubernetes/pkg/fields
  5. github.com/golang/glog
  6. k8s.io/kubernetes/pkg/labels
  7. k8s.io/kubernetes/pkg/util/runtime
  8. k8s.io/kubernetes/pkg/controller
  9. k8s.io/kubernetes/pkg/client/cache
  10. k8s.io/kubernetes/pkg/runtime
  11. k8s.io/kubernetes/pkg/api
  12. k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset
  13. k8s.io/kubernetes/pkg/watch

Test imports 3 package(s)

  1. k8s.io/kubernetes/pkg/api/unversioned
  2. k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/fake
  3. k8s.io/kubernetes/pkg/util/sets