How to install Kubernetes on your local laptop | minikube on mac
To do the test on one laptop, its not possible to setup the production ready K8s configuration with 2 master node & 3 worker nodes.
To reciprocate that, we use Minikube
or other software like kind
on our local laptop.
To communicate with the cluster through API server, we need a CLI and thats kubectl
.
By default, minikube uses Docker driver
, but, this networking has some limitations.
Its always good to start miniKube using hyperkit
driver.
Install miniKube on mac :
brew install minikube
check the status :
minikube status
Command to start the miniKube
minikube start
- Note : Default starts with docker driver
Check the minikube status -
minikube status
Know which driver minikube is using -
minikube profile list
To start the cluster with hyperkit driver : Hyperkit is more lightweight than docker driver for mac.
minikube start --memory=4098 --driver=hyperkit
- for that hyperkit needs to be installed -
brew install hyperkit
- for that hyperkit needs to be installed -
Now to communicate with K8S cluster, install kubectl
brew install kubectl