Skip to content

Commit

Permalink
Remove hard-coded dependance to docker.service in kubelet.service file (
Browse files Browse the repository at this point in the history
  • Loading branch information
floryut authored and LuckySB committed Apr 18, 2020
1 parent 6f0d5ed commit 69b8508
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion roles/kubernetes/node/templates/kubelet.service.j2
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
[Unit]
Description=Kubernetes Kubelet Server
Documentation=https://github.com/GoogleCloudPlatform/kubernetes
After=docker.service
After={{ container_manager }}.service
{% if container_manager == 'docker' %}
Wants=docker.socket
{% else %}
Wants={{ container_manager }}.service
{% endif %}

[Service]
User=root
Expand Down

0 comments on commit 69b8508

Please sign in to comment.