Created
August 2, 2024 01:25
-
-
Save russau/0b0f11724869e05e52992edbad88de26 to your computer and use it in GitHub Desktop.
Revisions
-
russau created this gist
Aug 2, 2024 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,24 @@ ## Create a quick cluster with eksctl ``` # download kubectl and install https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/ curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl # https://docs.aws.amazon.com/eks/latest/userguide/eksctl.html curl --silent --location "https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp sudo mv /tmp/eksctl /usr/local/bin ``` ## eksctl to create a small cluster ``` eksctl create cluster --name quick-cluster --nodes 2 --region us-east-1 ``` ## setup a kubeconfig on another instance ``` aws eks update-kubeconfig --name quick-cluster ```