loading...
Cover image for Install kubectl and minikube on Mac OS

Install kubectl and minikube on Mac OS

valentinprgnd profile image Valentin Prugnaud 🦊 (he / him) Originally published at whatdafox.com on ・1 min read

UPDATE: Docker can also help you run a Kubernetes cluster locally, check the Docker documentation to get started: https://docs.docker.com/docker-for-mac/kubernetes/

Install Google Cloud CLI tool

GCloud Quickstart MacOS

Install kubectl

$ gcloud components install kubectl 

Install minikube

$ curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.23.0/minikube-darwin-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/ 

Install minikube hyperkit driver

$ curl -LO https://storage.googleapis.com/minikube/releases/latest/docker-machine-driver-hyperkit \ && sudo install -o root -g wheel -m 4755 docker-machine-driver-hyperkit /usr/local/bin/ 

Configure minikube to use hyperkit driver

$ minikube config set vm-driver hyperkit 

Start minikube

$ minikube start 

Run a test

$ kubectl run hello-minikube --image=gcr.io/google_containers/echoserver:1.4 --port=8080 $ kubectl expose deployment hello-minikube --type=NodePort $ kubectl get pods 

Success!

Success

Posted on by:

valentinprgnd profile

Valentin Prugnaud 🦊 (he / him)

@valentinprgnd

🦊 Writing/Speaking about tech stuff on whatdafox.com 🐻 Co-Founder/CTO at Speakbox πŸš€ Co-Founder/CTO at Variate πŸ€“ Software Engineer

Discussion

pic
Editor guide