Skip to content

Instantly share code, notes, and snippets.

@vigneshragupathy
Created November 30, 2019 14:05
Show Gist options
  • Save vigneshragupathy/813d15d4fa0a908e571147b0ec2fee44 to your computer and use it in GitHub Desktop.
Save vigneshragupathy/813d15d4fa0a908e571147b0ec2fee44 to your computer and use it in GitHub Desktop.
[Unit]
Description=Kubernetes Kubelet
Documentation=https://github.com/kubernetes/kubernetes
After=docker.service
Requires=docker.service
[Service]
ExecStart=/usr/local/bin/kubelet \
--config=/var/lib/kubelet/kubelet-config.yaml \
--image-pull-progress-deadline=2m \
--kubeconfig=/var/lib/kubelet/kubeconfig \
--tls-cert-file=/var/lib/kubelet/kubernetes2.crt \
--tls-private-key-file=/var/lib/kubelet/kubernetes2.key \
--network-plugin=cni \
--register-node=true \
--v=2
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment