Skip to content

Instantly share code, notes, and snippets.

@leandrosiow
Created February 3, 2020 01:51
Show Gist options
  • Save leandrosiow/0d5a430398eca2bb162f45049f6971e7 to your computer and use it in GitHub Desktop.
Save leandrosiow/0d5a430398eca2bb162f45049f6971e7 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]
ExecStartPre=/sbin/iptables -P FORWARD ACCEPT
ExecStart=/usr/bin/kubelet --cloud-provider aws \
--config /etc/kubernetes/kubelet/kubelet-config.json \
--kubeconfig /var/lib/kubelet/kubeconfig \
--container-runtime docker \
--network-plugin cni $KUBELET_ARGS $KUBELET_EXTRA_ARGS
Restart=on-failure
RestartForceExitStatus=SIGPIPE
RestartSec=5
KillMode=process
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment