Create a Minikube Kubernetes Cluster on Mac M1 using Multipass (Ubuntu VM)
Have a look at the following blog post for more information on how to use the Multipass tool to create Ubuntu VMs on your Mac M1:
Now let's create a Minikube Kubernetes cluster using Multipass tool.
In this example, I will be configuring podman driver and CRI-O container runtime for this minikube kubernetes cluster.
Step 1:
multipass find
multipass launch minikube
multipass shell minikube
Step 2:
Install Podman in minikube:
sudo apt-get update
sudo apt-get -y install podman
Step 3:
Make Podman driver as default and then start a minikube Kubernetes Cluster with the podman driver and CRI-O container runtime
minikube config set driver podman
minikube start --driver=podman --container-runtime=cri-o
minikube status
Now use the kubetl command to list the nodes and all other kubernetes resources:
kubectl get nodes
kubectl get po -A
kubectl cluster-info
minikube dashboard
Add a node to minikube Kubernetes cluster:
kubectl get nodes
minikube node add
kubectl get nodes
minikube status
Other useful commands:
minikube node list
minikube node add --control-plane
minikube node add --worker