Skip to content

Instantly share code, notes, and snippets.

@vfarcic
Last active January 18, 2022 01:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save vfarcic/2a3e4ee9cb86d4a5a65cd3e4397f48fd to your computer and use it in GitHub Desktop.
Save vfarcic/2a3e4ee9cb86d4a5a65cd3e4397f48fd to your computer and use it in GitHub Desktop.
######################
# Create The Cluster #
######################
# Make sure that your kops version is v1.9 or higher.
# Make sure that all the prerequisites described in the "Appendix A" are met.
# Do not run the commands from below if you are a **Windows** user. You'll have to follow the instructions from the Appendix B instead.
source cluster/kops
chmod +x kops/cluster-setup.sh
NODE_COUNT=2 NODE_SIZE=t2.medium \
./kops/cluster-setup.sh
#######################
# Destroy the cluster #
#######################
kops delete cluster --name $NAME --yes
aws s3api delete-bucket --bucket $BUCKET_NAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment