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.

26 lines
665 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. $KUBELET_REGISTER_NODE \
  21. $KUBELET_NETWORK_PLUGIN
  22. Restart=on-failure
  23. [Install]
  24. WantedBy=multi-user.target