mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 10:51:29 +00:00
Move docker specific const to dockershim.
This commit is contained in:
parent
71245db133
commit
5726b22fbc
@ -67,13 +67,6 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
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
|
|
||||||
|
|
||||||
dockerProcessName = "docker"
|
dockerProcessName = "docker"
|
||||||
dockerPidFile = "/var/run/docker.pid"
|
dockerPidFile = "/var/run/docker.pid"
|
||||||
containerdProcessName = "docker-containerd"
|
containerdProcessName = "docker-containerd"
|
||||||
|
@ -37,11 +37,13 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// The percent of the machine memory capacity.
|
// The percent of the machine memory capacity. The value is used to calculate
|
||||||
dockerMemoryLimitThresholdPercent = kubecm.DockerMemoryLimitThresholdPercent
|
// 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.
|
// The minimum memory limit allocated to docker container: 150Mi
|
||||||
minDockerMemoryLimit = kubecm.MinDockerMemoryLimit
|
minDockerMemoryLimit = 150 * 1024 * 1024
|
||||||
|
|
||||||
// The Docker OOM score adjustment.
|
// The Docker OOM score adjustment.
|
||||||
dockerOOMScoreAdj = qos.DockerOOMScoreAdj
|
dockerOOMScoreAdj = qos.DockerOOMScoreAdj
|
||||||
|
Loading…
Reference in New Issue
Block a user