Install tools
Install utilities
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
Note
You should run this command as administrator.
Install kubectl
Kubernetes 1.27
curl -LO https://s3.us-west-2.amazonaws.com/amazon-eks/1.27.1/2023-04-19/bin/linux/amd64/kubectl
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
sudo install -o root -g root -m 0755 kubectl /usr/bin/kubectl
kubectl version --short --client
sudo kubectl version --short --client
rm kubectl
Kubernetes 1.26
curl -LO https://s3.us-west-2.amazonaws.com/amazon-eks/1.26.4/2023-05-11/bin/linux/amd64/kubectl
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
sudo install -o root -g root -m 0755 kubectl /usr/bin/kubectl
kubectl version --short --client
sudo kubectl version --short --client
rm kubectl
Kubernetes 1.25
curl -LO https://s3.us-west-2.amazonaws.com/amazon-eks/1.25.9/2023-05-11/bin/linux/amd64/kubectl
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
sudo install -o root -g root -m 0755 kubectl /usr/bin/kubectl
kubectl version --short --client
sudo kubectl version --short --client
rm kubectl
Kubernetes 1.24
curl -LO https://s3.us-west-2.amazonaws.com/amazon-eks/1.24.13/2023-05-11/bin/linux/amd64/kubectl
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
sudo install -o root -g root -m 0755 kubectl /usr/bin/kubectl
kubectl version --short --client
sudo kubectl version --short --client
rm kubectl
Kubernetes 1.23
curl -LO https://s3.us-west-2.amazonaws.com/amazon-eks/1.23.17/2023-05-11/bin/linux/amd64/kubectl
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
sudo install -o root -g root -m 0755 kubectl /usr/bin/kubectl
kubectl version --short --client
sudo kubectl version --short --client
rm kubectl
Kubernetes 1.27
curl -LO https://s3.us-west-2.amazonaws.com/amazon-eks/1.27.1/2023-04-19/bin/linux/arm64/kubectl
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
sudo install -o root -g root -m 0755 kubectl /usr/bin/kubectl
kubectl version --short --client
sudo kubectl version --short --client
rm kubectl
Kubernetes 1.26
curl -LO https://s3.us-west-2.amazonaws.com/amazon-eks/1.26.4/2023-05-11/bin/linux/arm64/kubectl
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
sudo install -o root -g root -m 0755 kubectl /usr/bin/kubectl
kubectl version --short --client
sudo kubectl version --short --client
rm kubectl
Kubernetes 1.25
curl -LO https://s3.us-west-2.amazonaws.com/amazon-eks/1.25.9/2023-05-11/bin/linux/arm64/kubectl
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
sudo install -o root -g root -m 0755 kubectl /usr/bin/kubectl
kubectl version --short --client
sudo kubectl version --short --client
rm kubectl
Kubernetes 1.24
curl -LO https://s3.us-west-2.amazonaws.com/amazon-eks/1.24.13/2023-05-11/bin/linux/arm64/kubectl
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
sudo install -o root -g root -m 0755 kubectl /usr/bin/kubectl
kubectl version --short --client
sudo kubectl version --short --client
rm kubectl
Kubernetes 1.23
curl -LO https://s3.us-west-2.amazonaws.com/amazon-eks/1.23.17/2023-05-11/bin/linux/arm64/kubectl
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
sudo install -o root -g root -m 0755 kubectl /usr/bin/kubectl
kubectl version --short --client
sudo kubectl version --short --client
rm kubectl
Kubernetes 1.27
Kubernetes 1.26
Kubernetes 1.25
Kubernetes 1.24
Enable Shell Autocomplete
Install eksctl
Enable Shell Autocomplete
Minimum IAM policies for eksctl
AWSCloudFormationFullAccess (AWS Managed Policy) | |
---|---|
Install helm
curl -LO https://get.helm.sh/helm-v3.12.2-linux-amd64.tar.gz
tar -xvzf helm-v3.12.2-linux-amd64.tar.gz
sudo install -o root -g root -m 0755 linux-amd64/helm /usr/local/bin/helm
sudo install -o root -g root -m 0755 linux-amd64/helm /usr/bin/helm
helm version
sudo helm version
rm -rf linux-amd64
rm -rf helm-v3.12.2-linux-amd64.tar.gz
curl -LO https://get.helm.sh/helm-v3.12.2-linux-arm64.tar.gz
tar -xvzf helm-v3.12.2-linux-arm64.tar.gz
sudo install -o root -g root -m 0755 linux-arm64/helm /usr/local/bin/helm
sudo install -o root -g root -m 0755 linux-arm64/helm /usr/bin/helm
helm version
sudo helm version
rm -rf linux-arm64
rm -rf helm-v3.12.2-linux-arm64.tar.gz
Enable Shell Autocomplete
Install docker
Enable Shell Autocomplete
Install docker buildx
export DOCKER_BUILDKIT=1
wget https://github.com/docker/buildx/releases/download/v0.11.2/buildx-v0.11.2.linux-amd64
mkdir -p ~/.docker/cli-plugins
mv buildx-v0.11.2.linux-amd64 ~/.docker/cli-plugins/docker-buildx
chmod a+x ~/.docker/cli-plugins/docker-buildx
docker run --privileged --rm ghcr.io/marcus16-kang/binfmt:amd64 --install all
export DOCKER_BUILDKIT=1
wget https://github.com/docker/buildx/releases/download/v0.11.2/buildx-v0.11.2.linux-arm64
mkdir -p ~/.docker/cli-plugins
mv buildx-v0.11.2.linux-arm64 ~/.docker/cli-plugins/docker-buildx
chmod a+x ~/.docker/cli-plugins/docker-buildx
docker run --privileged --rm ghcr.io/marcus16-kang/binfmt:arm64 --install all
Note
You can build and push using this command:
Install k9s
YOU SHOULD INSTALL awscliv2
IN HERE