set cgroup slice for multi container engine
This commit is contained in:
parent
e122e36e4e
commit
d8e0905254
3 changed files with 9 additions and 0 deletions
|
@ -35,6 +35,7 @@ LimitNOFILE=infinity
|
||||||
# Only systemd 226 and above support this version.
|
# Only systemd 226 and above support this version.
|
||||||
TasksMax=infinity
|
TasksMax=infinity
|
||||||
OOMScoreAdjust=-999
|
OOMScoreAdjust=-999
|
||||||
|
# Set the cgroup slice of the service so that kube reserved takes effect
|
||||||
{% if kube_reserved is defined and kube_reserved|bool %}
|
{% if kube_reserved is defined and kube_reserved|bool %}
|
||||||
Slice={{ kube_reserved_cgroups_for_service_slice }}
|
Slice={{ kube_reserved_cgroups_for_service_slice }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -35,6 +35,10 @@ LimitCORE=infinity
|
||||||
TasksMax=infinity
|
TasksMax=infinity
|
||||||
Delegate=yes
|
Delegate=yes
|
||||||
KillMode=process
|
KillMode=process
|
||||||
|
# Set the cgroup slice of the service so that kube reserved takes effect
|
||||||
|
{% if kube_reserved is defined and kube_reserved|bool %}
|
||||||
|
Slice={{ kube_reserved_cgroups_for_service_slice }}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
|
@ -42,6 +42,10 @@ TimeoutStartSec=1min
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
StartLimitBurst=3
|
StartLimitBurst=3
|
||||||
StartLimitInterval=60s
|
StartLimitInterval=60s
|
||||||
|
# Set the cgroup slice of the service so that kube reserved takes effect
|
||||||
|
{% if kube_reserved is defined and kube_reserved|bool %}
|
||||||
|
Slice={{ kube_reserved_cgroups_for_service_slice }}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
Loading…
Reference in a new issue