...

Source file src/k8s.io/kubernetes/pkg/controller/podgc/doc.go

Documentation: k8s.io/kubernetes/pkg/controller/podgc

     1  /*
     2  Copyright 2015 The Kubernetes Authors.
     3  
     4  Licensed under the Apache License, Version 2.0 (the "License");
     5  you may not use this file except in compliance with the License.
     6  You may obtain a copy of the License at
     7  
     8      http://www.apache.org/licenses/LICENSE-2.0
     9  
    10  Unless required by applicable law or agreed to in writing, software
    11  distributed under the License is distributed on an "AS IS" BASIS,
    12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  See the License for the specific language governing permissions and
    14  limitations under the License.
    15  */
    16  
    17  // Package podgc contains a very simple pod "garbage collector" implementation,
    18  // PodGCController, that runs in the controller manager. If the number of pods
    19  // in terminated phases (right now either Failed or Succeeded) surpasses a
    20  // configurable threshold, the controller will delete pods in terminated state
    21  // until the system reaches the allowed threshold again. The PodGCController
    22  // prioritizes pods to delete by sorting by creation timestamp and deleting the
    23  // oldest objects first. The PodGCController will not delete non-terminated
    24  // pods.
    25  package podgc // import "k8s.io/kubernetes/pkg/controller/podgc"
    26  

View as plain text