Browse Source
Remove hard-coded dependance to docker.service in kubelet.service file (#5917)
pull/5924/head
Florian Ruynat
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
1 deletions
-
roles/kubernetes/node/templates/kubelet.service.j2
|
@ -1,8 +1,12 @@ |
|
|
[Unit] |
|
|
[Unit] |
|
|
Description=Kubernetes Kubelet Server |
|
|
Description=Kubernetes Kubelet Server |
|
|
Documentation=https://github.com/GoogleCloudPlatform/kubernetes |
|
|
Documentation=https://github.com/GoogleCloudPlatform/kubernetes |
|
|
After=docker.service |
|
|
|
|
|
|
|
|
After={{ container_manager }}.service |
|
|
|
|
|
{% if container_manager == 'docker' %} |
|
|
Wants=docker.socket |
|
|
Wants=docker.socket |
|
|
|
|
|
{% else %} |
|
|
|
|
|
Wants={{ container_manager }}.service |
|
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
[Service] |
|
|
[Service] |
|
|
User=root |
|
|
User=root |
|
|