Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@vfarcic
Created August 5, 2020 10:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save vfarcic/f3e6575dcefcee039bb6cef6509f3fdc to your computer and use it in GitHub Desktop.
Save vfarcic/f3e6575dcefcee039bb6cef6509f3fdc to your computer and use it in GitHub Desktop.
####################
# Create a Cluster #
####################
# Only if you did not yet clone that repository
git clone \
https://github.com/vfarcic/devops-catalog-code.git
cd devops-catalog-code
git pull
cd terraform-aks/simple
az login
terraform init
terraform apply
export KUBECONFIG=$PWD/kubeconfig
kubectl get nodes
cd ../../../
#######################
# Destroy The Cluster #
#######################
cd devops-catalog-code/terraform-aks/simple
terraform destroy
cd ../../../
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment