Skip to content

Instantly share code, notes, and snippets.

@andreswebs
Last active February 9, 2021 17:10
Show Gist options
  • Save andreswebs/2410bc977c3cb2fb1dd4912304cefd89 to your computer and use it in GitHub Desktop.
Save andreswebs/2410bc977c3cb2fb1dd4912304cefd89 to your computer and use it in GitHub Desktop.
`eksctl` demo

eksctl demo

1. Download and install eksctl

#!/usr/bin/env bash

echo "Downloading ekstcl ..."
curl --location "https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp

echo "Installing eksctl ..."
install /tmp/eksctl "${HOME}/.local/bin"

echo "Clean up ..."
rm /tmp/eksctl

echo "done."

2. Create cluster

export CLUSTER_NAME=super-dev
eksctl create cluster --name="${CLUSTER_NAME}" --nodes=1 --auto-kubeconfig --enable-ssm

3. Delete cluster

eksctl delete cluster --name="${CLUSTER_NAME}"

References

https://eksctl.io/introduction/

https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/

https://kubernetes.io/docs/tasks/access-application-cluster/configure-access-multiple-clusters/#set-the-kubeconfig-environment-variable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment