package cm
import "k8s.io/kubernetes/pkg/kubelet/cm"
Index ¶
- Constants
- type ContainerManager
- func NewContainerManager(mountUtil mount.Interface, cadvisorInterface cadvisor.Interface, nodeConfig NodeConfig) (ContainerManager, error)
- func NewStubContainerManager() ContainerManager
- type KernelTunableBehavior
- type NodeConfig
- type Status
Constants ¶
const ( // The percent of the machine memory capacity. The value is used to calculate // docker memory resource container's hardlimit to workaround docker memory // leakage issue. Please see kubernetes/issues/9881 for more detail. DockerMemoryLimitThresholdPercent = 70 // The minimum memory limit allocated to docker container: 150Mi MinDockerMemoryLimit = 150 * 1024 * 1024 )
Types ¶
type ContainerManager ¶
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 cgroups in the machine. // These cgroups include the system and Kubernetes services. SystemCgroupsLimit() api.ResourceList // Returns a NodeConfig that is being used by the container manager. GetNodeConfig() NodeConfig // Returns internal Status. Status() Status }
Manages the containers running on a machine.
func NewContainerManager ¶
func NewContainerManager(mountUtil mount.Interface, cadvisorInterface cadvisor.Interface, nodeConfig NodeConfig) (ContainerManager, error)
TODO(vmarmol): Add limits to the system containers. Takes the absolute name of the specified containers. Empty container name disables use of the specified container.
func NewStubContainerManager ¶
func NewStubContainerManager() ContainerManager
type KernelTunableBehavior ¶
type KernelTunableBehavior string
TODO: plumb this up as a flag to Kubelet in a future PR
const ( KernelTunableWarn KernelTunableBehavior = "warn" KernelTunableError KernelTunableBehavior = "error" KernelTunableModify KernelTunableBehavior = "modify" )
type NodeConfig ¶
type NodeConfig struct { RuntimeCgroupsName string SystemCgroupsName string KubeletCgroupsName string ContainerRuntime string }
type Status ¶
type Status struct { // Any soft requirements that were unsatisfied. SoftRequirements error }
Source Files ¶
container_manager.go container_manager_linux.go container_manager_stub.go
- Version
- v1.3.0-alpha.4
- Published
- May 17, 2016
- Platform
- linux/amd64
- Imports
- 22 packages
- Last checked
- 1 minute ago –
Tools for package owners.