Created
August 13, 2018 20:06
-
-
Save vfarcic/d96c27204ff4b3ad3f4ae80ca3adb891 to your computer and use it in GitHub Desktop.
This file contains 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 characters
###################### | |
# Create The Cluster # | |
###################### | |
# Make sure that your kops version is v1.9 or higher. | |
# Make sure that all the prerequisites described in the "Appendix B" 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 \ | |
USE_HELM=true \ | |
./kops/cluster-setup.sh | |
################## | |
# Get Cluster IP # | |
################## | |
# If using Linux or MacOS, `export LB` command is already part of the output of the `cluster-setup.sh` script. | |
# Please execute the commands that follow only if you're using Windows. | |
LB_HOST=$(kubectl -n kube-ingress \ | |
get svc ingress-nginx \ | |
-o jsonpath="{.status.loadBalancer.ingress[0].hostname}") | |
export LB_IP="$(dig +short $LB_HOST \ | |
| tail -n 1)" | |
####################### | |
# 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