Skip to content

Instantly share code, notes, and snippets.

@nk-gears
Forked from vfarcic/docker-monitor.sh
Created December 3, 2019 14:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nk-gears/24cd0c3f2adec87a0b570a9ddaa62c08 to your computer and use it in GitHub Desktop.
Save nk-gears/24cd0c3f2adec87a0b570a9ddaa62c08 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 2, and Memory to 3.0
###################
# 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
##################
# Metrics Server #
##################
helm install stable/metrics-server \
--name metrics-server \
--namespace metrics \
--set args={"--kubelet-insecure-tls=true"}
##################
# Get Cluster IP #
##################
LB_IP=[...] # Replace with the IP of the cluster usually obtained through `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