package gc
import "k8s.io/kubernetes/pkg/controller/gc"
Package gc contains a very simple pod "garbage collector" implementation, GCController, 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 GCController prioritizes pods to delete by sorting by creation timestamp and deleting the oldest objects first. The GCController will not delete non-terminated pods.
Index ¶
Types ¶
type GCController ¶
type GCController struct {
// contains filtered or unexported fields
}
func New ¶
func New(kubeClient client.Interface, threshold int) *GCController
func (*GCController) Run ¶
func (gcc *GCController) Run(stop <-chan struct{})
Source Files ¶
doc.go gc_controller.go
- Version
- v1.1.0-beta
- Published
- Sep 25, 2015
- Platform
- windows/amd64
- Imports
- 15 packages
- Last checked
- 3 seconds ago –
Tools for package owners.