EKSctl: Difference between revisions
Jump to navigation
Jump to search
Line 21: | Line 21: | ||
| valign="top" | | | valign="top" | | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
export KUBECONFIG="${HOME}/.kube/aws-kubeconfig.yaml" | |||
aws eks update-kubeconfig --region ap-southeast-1 --name sdlc_cluster | |||
aws eks get-token --region=ap-southeast-1 --cluster-name=sdlc_cluster | aws eks get-token --region=ap-southeast-1 --cluster-name=sdlc_cluster | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 32: | Line 32: | ||
eksctl version | eksctl version | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|- | |- | ||
| colspan=" | | colspan="2" | | ||
---- | ---- | ||
|- | |- | ||
| valign="top" | | | valign="top" | | ||
<syntaxhighlight lang="bash"> | |||
export AWS_PROFILE=academia | |||
aws eks list-clusters | |||
eksctl get cluster | |||
</syntaxhighlight> | |||
| valign="top" | | | valign="top" | |
Revision as of 21:40, 22 July 2024
PLATFORM=$(uname -s)_$(dpkg --print-architecture)
wget -cq https://github.com/eksctl-io/eksctl/releases/latest/download/eksctl_${PLATFORM}.tar.gz -P ${HOME}/Downloads
SUM_SUFFIX=$(curl -sL "https://github.com/eksctl-io/eksctl/releases/latest/download/eksctl_checksums.txt"|grep ${PLATFORM})
cat << EXE|bash
cd ${HOME}/Downloads
echo ${SUM_SUFFIX}|sha256sum --check
tar -xzf eksctl_${PLATFORM}.tar.gz
rm -rf eksctl_${PLATFORM}.tar.gz
EXE
cat << EXE|sudo bash
cd ${HOME}/Downloads
mv eksctl /usr/local/bin
EXE
Playground
export KUBECONFIG="${HOME}/.kube/aws-kubeconfig.yaml"
aws eks update-kubeconfig --region ap-southeast-1 --name sdlc_cluster
aws eks get-token --region=ap-southeast-1 --cluster-name=sdlc_cluster
|
eksctl get cluster --region ap-southeast-1 --name sdlc_cluster
eksctl get cluster
eksctl version
|
| |
export AWS_PROFILE=academia
aws eks list-clusters
eksctl get cluster
|
References
| ||