Menjalankan Minikube pada Mac M1 dengan Docker-Desktop
Published in
2 min readDec 5, 2022
Install Docker
Download pada official website Docker https://docs.docker.com/docker-for-mac/install/
Selanjutnya Drag and Drop Docker
Install Minikube
Setelah Docker ter-install sebelumnya. Selanjutnya kita install Minikube for MacOs. Dengan perintah curl di bawah ini akan menjalankan perintah download dan Install.
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-darwin-arm64
sudo install minikube-darwin-arm64 /usr/local/bin/minikube
Setelah download selesai, cek versi minikube-nya
Cek versi Minikube
minikube version
minikube version: v1.26.0
commit: f4b412861bb746be73053c9f6d2895f12cf78565
Menjalankan Minikube
Jalankan terlebih dahalu docker yang sudah di install sebelumnya, Kemudian jalankan perintah di bawah ini untuk melihat dan menetapkan Memory, CPUs dan Driver sebagai Docker dan memungkinkan log untuk melihat output log yang terperinci.
minikube start --memory 4096 --cpus 4 --driver=docker😄 minikube v1.26.0 on Darwin 12.6 (arm64)
✨ Using the docker driver based on existing profile
❗ You cannot change the memory size for an existing minikube cluster. Please first delete the cluster.
❗ You cannot change the CPUs for an existing minikube cluster. Please first delete the cluster.
👍 Starting control plane node minikube in cluster minikube
🚜 Pulling base image ...
🔄 Restarting existing docker container for "minikube" ...
🐳 Preparing Kubernetes v1.24.1 on Docker 20.10.17 ...
▪ apiserver.service-node-port-range=32760-32767
🔎 Verifying Kubernetes components...
▪ Using image gcr.io/k8s-minikube/storage-provisioner:v5
💡 After the addon is enabled, please run "minikube tunnel" and your ingress resources would be available at "127.0.0.1"
▪ Using image k8s.gcr.io/ingress-nginx/controller:v1.2.1
▪ Using image k8s.gcr.io/ingress-nginx/kube-webhook-certgen:v1.1.1
▪ Using image k8s.gcr.io/ingress-nginx/kube-webhook-certgen:v1.1.1
🔎 Verifying ingress addon...
🌟 Enabled addons: storage-provisioner, default-storageclass, ingress
🏄 Done! kubectl is now configured to use "minikube" cluster and "default" namespace by default
Cek Docker Desktop
Sekarang terlihat instance minikube sedang berjalan di Docker Desktop.
Reference: