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.

30 lines
685 B

  1. [Unit]
  2. Description=Kubernetes Kubelet Server
  3. Documentation=https://github.com/GoogleCloudPlatform/kubernetes
  4. After={{ container_manager }}.service
  5. {% if container_manager == 'docker' %}
  6. Wants=docker.socket
  7. {% else %}
  8. Wants={{ container_manager }}.service
  9. {% endif %}
  10. [Service]
  11. User=root
  12. EnvironmentFile=-{{ kube_config_dir }}/kubelet.env
  13. ExecStart={{ bin_dir }}/kubelet \
  14. $KUBE_LOGTOSTDERR \
  15. $KUBE_LOG_LEVEL \
  16. $KUBELET_API_SERVER \
  17. $KUBELET_ADDRESS \
  18. $KUBELET_PORT \
  19. $KUBELET_HOSTNAME \
  20. $KUBELET_ARGS \
  21. $DOCKER_SOCKET \
  22. $KUBELET_NETWORK_PLUGIN \
  23. $KUBELET_VOLUME_PLUGIN \
  24. $KUBELET_CLOUDPROVIDER
  25. Restart=always
  26. RestartSec=10s
  27. [Install]
  28. WantedBy=multi-user.target