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

Top comments (0)