Skip to content

Instantly share code, notes, and snippets.

View scotty-c's full-sized avatar

Scott Coulton scotty-c

View GitHub Profile
@scotty-c
scotty-c / .kubefunc
Created January 2, 2019 22:46
My kubernetes bash functions for minikube
#!/bin/bash
minikube_docker () {
minikube.exe start --memory=8192 --cpus=4 \
--vm-driver=hyperv \
--hyperv-virtual-switch=minikube \
--kubernetes-version=v1.13.0 \
--bootstrapper=kubeadm \
--extra-config=apiserver.enable-admission-plugins="LimitRanger,NamespaceExists,NamespaceLifecycle,ResourceQuota,ServiceAccount,DefaultStorageClass,MutatingAdmissionWebhook"
kubectl config set-cluster minikube --server=https://$(minikube.exe ip):8443 --certificate-authority=/mnt/c/Users/sccoulto/.minikube/ca.crt
kubectl config set-context minikube --cluster=minikube --user=minikube