DEV Community

Cover image for Install kubectl and minikube on Mac OS
Valentin Prugnaud 🦊
Valentin Prugnaud 🦊

Posted on • Originally published at whatdafox.com on

2 2

Install kubectl and minikube on Mac OS

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 
Enter fullscreen mode Exit fullscreen mode

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/ 
Enter fullscreen mode Exit fullscreen mode

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/ 
Enter fullscreen mode Exit fullscreen mode

Configure minikube to use hyperkit driver

$ minikube config set vm-driver hyperkit 
Enter fullscreen mode Exit fullscreen mode

Start minikube

$ minikube start 
Enter fullscreen mode Exit fullscreen mode

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 
Enter fullscreen mode Exit fullscreen mode

Success!

Success

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay