-
Refer to AWS Guide to install kubectl
Set
<kubectl version>
,<release date>
according to Kubernetes versionKUBECTL_VERSION=<kubectl version> RELEASE_DATE=<release date> echo $KUBECTL_VERSION echo $RELEASE_DATE
mspuser:~/environment $ KUBECTL_VERSION=1.22.6 mspuser:~/environment $ RELEASE_DATE=2022-03-09 mspuser:~/environment $ echo $KUBECTL_VERSION 1.22.6 mspuser:~/environment $ echo $RELEASE_DATE 2022-03-09 mspuser:~/environment $
-
Download the Amazon EKS vended kubectl binary
curl -o kubectl https://s3.us-west-2.amazonaws.com/amazon-eks/$KUBECTL_VERSION/$RELEASE_DATE/bin/linux/amd64/kubectl
-
Apply execute permissions to the binary
chmod +x ./kubectl
-
Copy the binary to a folder in PATH
mkdir -p $HOME/bin && cp ./kubectl $HOME/bin/kubectl && export PATH=$PATH:$HOME/bin
-
Verify kubectl version
kubectl version --short --client
mspuser:~/environment $ kubectl version --short --client Client Version: v1.22.6-eks-7d68063 mspuser:~/environment $
-
Notifications
You must be signed in to change notification settings - Fork 0
Kubernetes Basics with AWS Cloud9 (Cloud-based Integrated Development Environment)
License
t2yijaeho/K8s-with-Cloud9
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Kubernetes Basics with AWS Cloud9 (Cloud-based Integrated Development Environment)
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published