Skip to content

Instantly share code, notes, and snippets.

@atrakic
Forked from vfarcic/minikube-logging.sh
Created December 8, 2018 07:44
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 atrakic/ee7b09a726acf9e4336a6cf49817e627 to your computer and use it in GitHub Desktop.
Save atrakic/ee7b09a726acf9e4336a6cf49817e627 to your computer and use it in GitHub Desktop.
######################
# Create The Cluster #
######################
# Tested with minikube v0.30
minikube start \
--vm-driver virtualbox \
--cpus 2 \
--memory 10240
###############################
# 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