Skip to content

Instantly share code, notes, and snippets.

@russau
Created August 2, 2024 01:25
Show Gist options
  • Save russau/0b0f11724869e05e52992edbad88de26 to your computer and use it in GitHub Desktop.
Save russau/0b0f11724869e05e52992edbad88de26 to your computer and use it in GitHub Desktop.

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment