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.

32 lines
854 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={{kube_config_dir}}/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_NETWORK_PLUGIN \
  24. $KUBELET_CLOUDPROVIDER
  25. ExecStartPre=-{{ docker_bin_dir }}/docker rm -f kubelet
  26. ExecReload={{ docker_bin_dir }}/docker restart kubelet
  27. Restart=always
  28. RestartSec=10s
  29. [Install]
  30. WantedBy=multi-user.target