Last active
February 9, 2020 22:07
-
-
Save leandrosiow/13ac6c27c9236a8c8487e324fbf68662 to your computer and use it in GitHub Desktop.
Here is an example of the kubelet service file created by eksctl
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
file that has been created by eksctl | |
``` | |
# /etc/systemd/system/kubelet.service | |
# eksctl-specific systemd drop-in unit for kubelet, for Amazon Linux 2 (AL2) | |
[Service] | |
# Local metadata parameters: REGION, AWS_DEFAULT_REGION | |
EnvironmentFile=/etc/eksctl/metadata.env | |
# Global and static parameters: CLUSTER_DNS, NODE_LABELS, NODE_TAINTS | |
EnvironmentFile=/etc/eksctl/kubelet.env | |
# Local non-static parameters: NODE_IP, INSTANCE_ID | |
EnvironmentFile=/etc/eksctl/kubelet.local.env | |
ExecStart= | |
ExecStart=/usr/bin/kubelet \ | |
--node-ip=${NODE_IP} \ | |
--node-labels=${NODE_LABELS},alpha.eksctl.io/instance-id=${INSTANCE_ID} \ | |
--max-pods=${MAX_PODS} \ | |
--register-node=true --register-with-taints=${NODE_TAINTS} \ | |
--allow-privileged=true \ | |
--cloud-provider=aws \ | |
--container-runtime=docker \ | |
--network-plugin=cni \ | |
--cni-bin-dir=/opt/cni/bin \ | |
--cni-conf-dir=/etc/cni/net.d \ | |
--pod-infra-container-image=${AWS_EKS_ECR_ACCOUNT}.dkr.ecr.${AWS_DEFAULT_REGION}.amazonaws.com/eks/pause-amd64:3.1 \ | |
--kubeconfig=/etc/eksctl/kubeconfig.yaml \ | |
--config=/etc/eksctl/kubelet.yaml | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment