Minikube is often used to build local kubernetes development environments, and this article describes how to install Minikube on a computer with apple Silicon M1.
Now, we install the docker-based minikube.
Download Docker Desktop on the docker website, and be sure to select the mac with Apple Chip version.
After the download is complete, install it, and then follow the prompt to install by default.
Download the arm64 version of minikube, download address is:
After the download is complete, the file is an executable file and does not require installation. You only need to give execute permission and place it under the PATH path.
The next commands will be executed on the terminal, so open a command terminal first
Execute the following command:
chmod +x minikube-darwin-arm64
sudo mv minikube-darwin-arm64 /usr/local/bin/minikube
minikube start --driver="docker" --memory=2048
The first time you run it, you may indicate that the program (minikube) is not an unsafe program and prevent it from running, in this case, you need to complete the operation of agreeing to run in “System Preferences” - > “Security and Privacy” - > “General” and select “Still Running”. Then run the launched command again in the terminal window.
If the system displays a message similar to the following, initialization was successful
😄 Darwin 12.0.1 (arm64) 上的 minikube v1.24.0
To check the status of minikube, you can execute：
System will output
To stop the running minikube, you can execute
To start the pause minkube, you can execute