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.

28 lines
653 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. User=root
  8. EnvironmentFile=-{{kube_config_dir}}/kubelet.env
  9. ExecStartPre=-/bin/mkdir -p {{ kubelet_flexvolumes_plugins_dir }}
  10. ExecStart={{ bin_dir }}/kubelet \
  11. $KUBE_LOGTOSTDERR \
  12. $KUBE_LOG_LEVEL \
  13. $KUBELET_API_SERVER \
  14. $KUBELET_ADDRESS \
  15. $KUBELET_PORT \
  16. $KUBELET_HOSTNAME \
  17. $KUBE_ALLOW_PRIV \
  18. $KUBELET_ARGS \
  19. $DOCKER_SOCKET \
  20. $KUBELET_NETWORK_PLUGIN \
  21. $KUBELET_VOLUME_PLUGIN \
  22. $KUBELET_CLOUDPROVIDER
  23. Restart=always
  24. RestartSec=10s
  25. [Install]
  26. WantedBy=multi-user.target