DEV Community

Cover image for Running Kubernetes on MacBook, without minikube
burhanuddin taha
burhanuddin taha

Posted on

Running Kubernetes on MacBook, without minikube

Docker on Mac with Kubernetes

Docker on mac version 2.3.0.4 is come with default support of kubernetes. Kubernetes support with docker on mac is available since 18.06 stable or higher, but by default kubernetes is not enable, you have to enable it which we will see how to do it
Screenshot 2020-09-12 at 22.49.10

It is very easy to enable kubernetes.

  1. Go to Preferences of Docker on Mac
    Screenshot 2020-09-12 at 22.54.58

  2. Select kubernetes and click on enable kubernetes checkbox. finally restart and observe Kubernetes status.
    Screenshot 2020-09-12 at 22.56.15

If you are lucky enough kubernetes satus might get turn from starting to running state. But don't worry if kubernetes is not getting started perform following action.

go to terminal and run following command
rm -rf ~/Library/Group\ Containers/group.com.docker/pki/
rm -rf ~/.kube
finally
restart Docker for Mac:

after restart give 5 mins for kubernete to start and you will see following

Screenshot 2020-09-12 at 23.04.04

Top comments (0)