Last active
January 18, 2022 00:54
-
-
Save vfarcic/d07bcbc7c88e8bd104fedde63aee8374 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 A Cluster # | |
#################### | |
# Open Docker Preferences, select the Kubernetes tab, and select the "Enable Kubernetes" checkbox | |
# Open Docker Preferences, select the Advanced tab, set CPUs to 4, and Memory to 4.0 | |
# Make sure that your current kubectl context is pointing to your Docker for Mac/Windows cluster | |
################### | |
# Install Ingress # | |
################### | |
kubectl apply \ | |
-f https://raw.githubusercontent.com/kubernetes/ingress-nginx/1cd17cd12c98563407ad03812aebac46ca4442f2/deploy/mandatory.yaml | |
kubectl apply \ | |
-f https://raw.githubusercontent.com/kubernetes/ingress-nginx/1cd17cd12c98563407ad03812aebac46ca4442f2/deploy/provider/cloud-generic.yaml | |
################## | |
# Install Tiller # | |
################## | |
kubectl create \ | |
-f https://raw.githubusercontent.com/vfarcic/k8s-specs/master/helm/tiller-rbac.yml \ | |
--record --save-config | |
helm init --service-account tiller | |
kubectl -n kube-system \ | |
rollout status deploy tiller-deploy | |
################## | |
# Get Cluster IP # | |
################## | |
LB_IP=[...] # Replace with the IP of the cluster obtainer with `ifconfig` | |
####################### | |
# Destroy the cluster # | |
####################### | |
# Reset Kubernetes cluster |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment