Skip to content

Instantly share code, notes, and snippets.

@vfarcic
Last active May 27, 2019 09:43
Show Gist options
  • Save vfarcic/bf08bce43a26c7299b6bd365037eb074 to your computer and use it in GitHub Desktop.
Save vfarcic/bf08bce43a26c7299b6bd365037eb074 to your computer and use it in GitHub Desktop.
####################
# 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 3, and Memory to 3.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
#######################
# Destroy the cluster #
#######################
# Reset Kubernetes cluster
@tommy1199
Copy link

This code is not working anymore. The setup for Ingress was simplified:

kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/mandatory.yaml
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/provider/cloud-generic.yaml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment