brew install kubectl
brew install cask minikube
# replace virtualbox with xhyve
brew install docker-machine-driver-xhyve
minikube start --vm-driver=xhyve --kubernetes-version="v1.8.2"
minikube start \
--memory 8096 \
--extra-config=controller-manager.horizontal-pod-autoscaler-upscale-delay=1m \
--extra-config=controller-manager.horizontal-pod-autoscaler-downscale-delay=2m \
--extra-config=controller-manager.horizontal-pod-autoscaler-sync-period=10s
minikube start --extra-config=apiserver.Authorization.Mode=RBAC
# https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/
minikube start --extra-config="kubelet.allowed-unsafe-sysctls=kernel.msg*,net.core.somaxconn"...
kubectl get nodes
minikube stop
minikube delete
minikube start --vm-driver=hyperv --kubernetes-version="v1.8.2"
kubectl get nodes
# launch dashboard
minikube dashboard
# view dashboard url
minikube dashboard --url
# Show IP of cluster
minikube ip
kubectl run hello-minikube --image=gcr.io/google_containers/echoserver:1.4 --port=8080
kubectl expose deployment --type=NodePort
minikube service hello-minikube --url
brew install starkandwayne/kubernetes/knctl
knctl install --node-ports --exclude-monitoring
knctl namespace create -n helloworld
knctl deploy \
--namespace helloworld \
--service hello \
--image gcr.io/knative-samples/helloworld-go \
--env TARGET=Rev1