DEV Community

Cover image for Kubernetes local environment set up in Mac
Pradipta
Pradipta

Posted on

Kubernetes local environment set up in Mac

Environment Setup in Mac :

  • kubctl : It is a command line tool that helps to connect to K8S Cluster. Run the following command -
brew install kubectl
Enter fullscreen mode Exit fullscreen mode

After installation check the version with the following command -

kubectl version
Enter fullscreen mode Exit fullscreen mode
  • Hyperkit : Install a Hypervisor
brew install hyperkit
Enter fullscreen mode Exit fullscreen mode

See the installations done already using the command -

brew list
Enter fullscreen mode Exit fullscreen mode
  • Minikube : Minikube is a tool that helps to run K8S Cluster in local machine. It runs Single Node K8S cluster on local machine which eases the process of development. Install -
brew install minikube
Enter fullscreen mode Exit fullscreen mode

Verify installation -

minikube version
Enter fullscreen mode Exit fullscreen mode

Start Minikube(prerequisite - Docker Daemon should be up and running) -

minikube start
Enter fullscreen mode Exit fullscreen mode

Status of Minikube -

minikube status
Enter fullscreen mode Exit fullscreen mode

Check the Cluster Information -

kubectl cluster-info
Enter fullscreen mode Exit fullscreen mode

Check nodes -

kubectl get nodes
Enter fullscreen mode Exit fullscreen mode

Stop Minikube -

minikube stop
Enter fullscreen mode Exit fullscreen mode

Delete cluster

minikube delete
Enter fullscreen mode Exit fullscreen mode

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

Top comments (0)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more