Remove hard-coded dependance to docker.service in kubelet.service file (#5917)

This commit is contained in:
Florian Ruynat
2020-04-09 17:43:46 +02:00
committed by GitHub
parent 0d675cdd1a
commit 473a8beff0

View File

@ -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