mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +00:00
Merge pull request #453 from brendandburns/memory
Add support for memory limits in the kubelet.
This commit is contained in:
commit
07fafb1252
@ -391,13 +391,14 @@ func (kl *Kubelet) runContainer(manifest *api.ContainerManifest, container *api.
|
||||
opts := docker.CreateContainerOptions{
|
||||
Name: buildDockerName(manifest, container),
|
||||
Config: &docker.Config{
|
||||
Cmd: container.Command,
|
||||
Env: envVariables,
|
||||
ExposedPorts: exposedPorts,
|
||||
Hostname: container.Name,
|
||||
Image: container.Image,
|
||||
ExposedPorts: exposedPorts,
|
||||
Env: envVariables,
|
||||
Memory: int64(container.Memory),
|
||||
Volumes: volumes,
|
||||
WorkingDir: container.WorkingDir,
|
||||
Cmd: container.Command,
|
||||
},
|
||||
}
|
||||
dockerContainer, err := kl.DockerClient.CreateContainer(opts)
|
||||
|
Loading…
Reference in New Issue
Block a user