Created
October 16, 2018 22:55
-
-
Save vfarcic/892c783bf51fc06dd7f31b939bc90248 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 The Cluster # | |
###################### | |
# Tested with minikube v0.30 | |
minikube start \ | |
--vm-driver virtualbox \ | |
--cpus 2 \ | |
--memory 3072 | |
############################### | |
# Install Ingress and Storage # | |
############################### | |
minikube addons enable ingress | |
minikube addons enable storage-provisioner | |
minikube addons enable default-storageclass | |
################## | |
# 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 # | |
################## | |
minikube addons enable metrics-server | |
kubectl -n kube-system rollout status deployment metrics-server | |
################## | |
# Get Cluster IP # | |
################## | |
export LB_IP=$(minikube ip) | |
####################### | |
# Destroy the cluster # | |
####################### | |
minikube delete |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment