Categories
Containers

Setup Kubernetes on Mac

brew cask install virtualbox
brew install kubectl
brew install minikube
minikube start --vm-driver=virtualbox
😄  minikube v1.7.3 on Darwin 10.15.3
✨  Using the virtualbox driver based on user configuration
🔥  Creating virtualbox VM (CPUs=2, Memory=2000MB, Disk=20000MB) ...
🐳  Preparing Kubernetes v1.17.3 on Docker 19.03.6 ...
🚀  Launching Kubernetes ... 
🌟  Enabling addons: default-storageclass, storage-provisioner
⌛  Waiting for cluster to come online ...
🏄  Done! kubectl is now configured to use "minikube"
kubectl create deployment hello-minikube --image=k8s.gcr.io/echoserver:1.10
kubectl expose deployment hello-minikube --type=NodePort --port=8080
kubectl get pod

The default login for Virtual Box minikube, username: “docker”, password: “tcuser”.