Saturday, August 12, 2023

Installing and running Minikube on Mac

Step 1:

To check if virtualization is supported on macOS, run the following command on your terminal.

sysctl -a | grep -E --color 'machdep.cpu.features|VMX'

If you see VMX in the output (should be colored), the VT-x feature is enabled in your machine.


Make sure you have kubectl installed. You can install kubectl using below command


brew install kubectl

Verify kubectl version

kubectl version


Install a Hypervisor

If you do not already have a hypervisor installed, install one of these now:


• HyperKit

• VirtualBox

• VMware Fusion


We will install HyperKit to run our Minikube

brew install hyperkit

Verify that you installed kubectl & HyperKit successfully in your mac using

brew list


Install Minikube

The easiest way to install Minikube on macOS is using Homebrew


brew install minikube


minikube version

We successfully setup minikube in our mac now we are good to start minikube


Starting minikube is using below 

minikube start

if you observe the statement above , minikube choose default driver as hyperkit , that’s what we installed as Hypervisor


Once minikube started successfully , we can verify its status

minikube status

After you have confirmed whether Minikube is working with your chosen hypervisor, you can continue to use Minikube or you can stop your cluster. To stop your cluster, run:

minikube stop

Delete minikube

minikube delete


references:

https://medium.com/@javatechie/kubernetes-tutorial-install-run-minikube-in-mac-os-k8s-cluster-369b25b0c3f0

No comments:

Post a Comment