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.

27 lines
701 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/config
  11. EnvironmentFile=/etc/network-environment
  12. ExecStart={{ bin_dir }}/kubelet \
  13. $KUBE_LOGTOSTDERR \
  14. $KUBE_LOG_LEVEL \
  15. $KUBELET_API_SERVER \
  16. $KUBELET_ADDRESS \
  17. $KUBELET_PORT \
  18. $KUBELET_HOSTNAME \
  19. $KUBE_ALLOW_PRIV \
  20. $KUBELET_ARGS \
  21. $KUBELET_REGISTER_NODE \
  22. $KUBELET_NETWORK_PLUGIN
  23. Restart=on-failure
  24. [Install]
  25. WantedBy=multi-user.target