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
635 B

9 years ago
  1. [Unit]
  2. Description=Kubernetes Kubelet Server
  3. Documentation=https://github.com/GoogleCloudPlatform/kubernetes
  4. {% if overlay_network_plugin|default('') %}
  5. After=docker.service calico-node.service
  6. {% else %}
  7. After=docker.service
  8. {% endif %}
  9. [Service]
  10. #WorkingDirectory=/var/lib/kubelet
  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_NETWORK_PLUGIN
  22. Restart=on-failure
  23. [Install]
  24. WantedBy=multi-user.target