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.

31 lines
779 B

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 calico-node.service
  6. {% else %}
  7. After=docker.service
  8. {% endif %}
  9. [Service]
  10. EnvironmentFile=/etc/kubernetes/kubelet.env
  11. ExecStart={{ bin_dir }}/kubelet \
  12. $KUBE_LOGTOSTDERR \
  13. $KUBE_LOG_LEVEL \
  14. $KUBELET_API_SERVER \
  15. $KUBELET_ADDRESS \
  16. $KUBELET_PORT \
  17. $KUBELET_HOSTNAME \
  18. $KUBE_ALLOW_PRIV \
  19. $KUBELET_ARGS \
  20. $DOCKER_SOCKET \
  21. $KUBELET_REGISTER_NODE \
  22. $KUBELET_NETWORK_PLUGIN \
  23. $KUBELET_CLOUDPROVIDER
  24. ExecStartPre=-/usr/bin/docker rm -f kubelet
  25. ExecReload=/usr/bin/docker restart kubelet
  26. Restart=always
  27. RestartSec=10s
  28. [Install]
  29. WantedBy=multi-user.target