Created
June 26, 2018 17:32
-
-
Save stevenolen/2fddf5cf5ae2f2a6f1ba6dade04a16ea to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Kubernetes Kubelet | |
Documentation=https://github.com/kubernetes/kubernetes | |
After=docker.service | |
Requires=docker.service | |
[Service] | |
ExecStart=/usr/bin/kubelet \ | |
--address=0.0.0.0 \ | |
--authentication-token-webhook \ | |
--authorization-mode=Webhook \ | |
--allow-privileged=true \ | |
--cloud-provider=aws \ | |
--cluster-dns=DNS_CLUSTER_IP \ | |
--cluster-domain=cluster.local \ | |
--cni-bin-dir=/opt/cni/bin \ | |
--cni-conf-dir=/etc/cni/net.d \ | |
--container-runtime=docker \ | |
--max-pods=MAX_PODS \ | |
--node-ip=INTERNAL_IP \ | |
--node-labels=NODE_LABELS \ | |
--network-plugin=cni \ | |
--pod-infra-container-image=602401143452.dkr.ecr.REGION.amazonaws.com/eks/pause-amd64:3.1 \ | |
--cgroup-driver=cgroupfs \ | |
--register-node=true \ | |
--kubeconfig=/var/lib/kubelet/kubeconfig \ | |
--feature-gates=RotateKubeletServerCertificate=true \ | |
--anonymous-auth=false \ | |
--client-ca-file=CLIENT_CA_FILE | |
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