Introduce SystemContainer to Kubelet ContainerManager.
This generalizes the handling of containers in the ContainerManager. Also introduces the ability to determine how much resources are reserved for those system containers.
This commit is contained in:
@@ -16,10 +16,18 @@ limitations under the License.
|
||||
|
||||
package kubelet
|
||||
|
||||
import (
|
||||
"github.com/GoogleCloudPlatform/kubernetes/pkg/api"
|
||||
)
|
||||
|
||||
// Manages the containers running on a machine.
|
||||
type containerManager interface {
|
||||
// Runs the container manager's housekeeping.
|
||||
// - Ensures that the Docker daemon is in a container.
|
||||
// - Creates the system container where all non-containerized processes run.
|
||||
Start() error
|
||||
|
||||
// Returns resources allocated to system containers in the machine.
|
||||
// These containers include the system and Kubernetes services.
|
||||
SystemContainersLimit() api.ResourceList
|
||||
}
|
||||
|
Reference in New Issue
Block a user