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:
Victor Marmol
2015-05-29 17:32:34 -07:00
parent 50b9d6284a
commit 7283e662b5
6 changed files with 134 additions and 56 deletions

View File

@@ -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
}