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.

29 lines
707 B

  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. {% if kubelet_flexvolumes_plugins_dir is defined %}
  9. ExecStartPre=-/bin/mkdir -p {{ kubelet_flexvolumes_plugins_dir }}
  10. {% endif %}
  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_NETWORK_PLUGIN \
  22. $KUBELET_VOLUME_PLUGIN \
  23. $KUBELET_CLOUDPROVIDER
  24. Restart=always
  25. RestartSec=10s
  26. [Install]
  27. WantedBy=multi-user.target