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
818 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. After=docker.service
  5. Wants=docker.socket
  6. [Service]
  7. EnvironmentFile={{kube_config_dir}}/kubelet.env
  8. ExecStart={{ bin_dir }}/kubelet \
  9. $KUBE_LOGTOSTDERR \
  10. $KUBE_LOG_LEVEL \
  11. $KUBELET_API_SERVER \
  12. $KUBELET_ADDRESS \
  13. $KUBELET_PORT \
  14. $KUBELET_HOSTNAME \
  15. $KUBE_ALLOW_PRIV \
  16. $KUBELET_ARGS \
  17. $DOCKER_SOCKET \
  18. $KUBELET_NETWORK_PLUGIN \
  19. $KUBELET_VOLUME_PLUGIN \
  20. $KUBELET_CLOUDPROVIDER
  21. Restart=always
  22. RestartSec=10s
  23. ExecStartPre=-{{ docker_bin_dir }}/docker rm -f kubelet
  24. {% if kubelet_flexvolumes_plugins_dir is defined %}
  25. ExecStartPre=-/bin/mkdir -p {{ kubelet_flexvolumes_plugins_dir }}
  26. {% endif %}
  27. ExecReload={{ docker_bin_dir }}/docker restart kubelet
  28. [Install]
  29. WantedBy=multi-user.target