Last active
January 18, 2022 00:24
-
-
Save vfarcic/ddfa70d992a0a92ba63b591e72aaa6a6 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
# Source: https://gist.github.com/ddfa70d992a0a92ba63b591e72aaa6a6 | |
#################### | |
# Create A Cluster # | |
#################### | |
# TODO: Link to the article that explains how to create the cluster and install Argo CD | |
# Replace `[...]` with the GitHub organization | |
export GH_ORG=[...] | |
git clone https://github.com/$GH_ORG/cf-terraform-eks.git | |
cd cf-terraform-eks | |
# Open `variables.tf` and change the value of `destroy` from `true` to `false` | |
git add . | |
git commit -m "Let there be light" | |
git push | |
# Visit Codefresh.io and wait until the newly created build finished executing. | |
source creds | |
cd .. | |
####################### | |
# Destroy The Cluster # | |
####################### | |
cd cf-terraform-eks | |
kubectl --namespace ingress-nginx \ | |
delete service ingress-nginx-controller | |
# Open `variables.tf` and change the value of `destroy` from `false` to `true` | |
git add . | |
git commit -m "Let there be darkness" | |
git push | |
cd .. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment