Minikube Installation for M1 Mac
In this post, I am going to try Minikube on Mac with M1 Chip.
what is minikube
Minikube is k8s tool running on a local machine.
See also kind for multi cluster implementation for local k8s.
install
% curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-darwin-arm64
% install minikube-darwin-arm64 /usr/local/bin/minikube
% minikube version
minikube version: v1.20.0
Note: Installing with brew fails due to a different binary as of 2021-05-24.
% brew install minikube
% minikube version
❌ Exiting due to MK_WRONG_BINARY_M1: You are trying to run amd64 binary on M1 system. Please use darwin/arm64 binary instead (Download at https://github.com/kubernetes/minikube/releases/download/v1.20.0/minikube-darwin-amd64.)
% brew uninstall minikube
start
The default driver 'virtualbox' is not supported on M1, but you can use 'docker' driver: https://minikube.sigs.k8s.io/docs/drivers/docker/ .
Make sure docker is running, and then specify the driver when starting minikube.
% open -a docker
% minikube start --driver=docker
% minikube status
minikube
type: Control Plane
host: Running
kubelet: Running
apiserver: Running
kubeconfig: Configured
You can make docker the default driver:
% minikube config set driver docker
dashboard
The dashboard is pre-installed. You can open it from CLI.
% minikube dashboard
Comments
Post a Comment