You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
853 B

9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
  1. [Unit]
  2. Description=Kubernetes Kubelet Server
  3. Documentation=https://github.com/GoogleCloudPlatform/kubernetes
  4. {% if kube_network_plugin is defined and kube_network_plugin == "calico" %}
  5. After=docker.service docker.socket calico-node.service
  6. Wants=docker.socket calico-node.service
  7. {% else %}
  8. After=docker.service
  9. Wants=docker.socket
  10. {% endif %}
  11. [Service]
  12. EnvironmentFile=/etc/kubernetes/kubelet.env
  13. ExecStart={{ bin_dir }}/kubelet \
  14. $KUBE_LOGTOSTDERR \
  15. $KUBE_LOG_LEVEL \
  16. $KUBELET_API_SERVER \
  17. $KUBELET_ADDRESS \
  18. $KUBELET_PORT \
  19. $KUBELET_HOSTNAME \
  20. $KUBE_ALLOW_PRIV \
  21. $KUBELET_ARGS \
  22. $DOCKER_SOCKET \
  23. $KUBELET_REGISTER_NODE \
  24. $KUBELET_NETWORK_PLUGIN \
  25. $KUBELET_CLOUDPROVIDER
  26. ExecStartPre=-/usr/bin/docker rm -f kubelet
  27. ExecReload=/usr/bin/docker restart kubelet
  28. Restart=always
  29. RestartSec=10s
  30. [Install]
  31. WantedBy=multi-user.target