ㅁ Install kubectl
sudo curl --silent --location -o /usr/local/bin/kubectl \
https://amazon-eks.s3.us-west-2.amazonaws.com/1.17.11/2020-09-18/bin/linux/amd64/kubectl
sudo chmod +x /usr/local/bin/kubectl
ㅁ Update awscli
sudo pip install --upgrade awscli && hash -r
ㅁ Install jq, envsubst (from GNU gettext utilities) and bash-completion
sudo yum -y install jq gettext bash-completion moreutils
ㅁ Install yq for yaml processing
echo 'yq() {
docker run --rm -i -v "${PWD}":/workdir mikefarah/yq "$@"
}' | tee -a ~/.bashrc && source ~/.bashrc
ㅁ Verify the binaries are in the path and executable
for command in kubectl jq envsubst aws
do
which $command &>/dev/null && echo "$command in path" || echo "$command NOT FOUND"
done
ㅁ Enable kubectl bash_completion
kubectl completion bash >> ~/.bash_completion
. /etc/profile.d/bash_completion.sh
. ~/.bash_completion
ㅁ Set the AWS Load Balancer Controller version
echo 'export LBC_VERSION="v2.0.0"' >> ~/.bash_profile
. ~/.bash_profile
'AWS EKS 실습 > EKS 환경 구성' 카테고리의 다른 글
EKS CNI Custom Network을 이용한 Pod 대역 분리 (0) | 2022.05.17 |
---|---|
3. EKSCTL을 사용하여 EKS 환경 구성 (0) | 2021.02.17 |
2. 사전 준비 - 5 (Service Repo, SSH, KMS) (0) | 2021.02.17 |
2. 사전 준비 - 4 (IAM Role 할당 및 Cloud9 EC2 적용) (0) | 2021.02.17 |
2. 사전 준비 - 2 (EKS Cluster 구성을 위한 Cloud 9 생성) (0) | 2021.02.17 |