kubernetes / minikube

Run Kubernetes locally
https://minikube.sigs.k8s.io/
Apache License 2.0
29.58k stars 4.89k forks source link

Fixed: Minikube start on M3 Macbook #19984

Closed anonystick closed 2 days ago

anonystick commented 1 week ago

What Happened?

Fixed!

Attach the log file

brew install kubectl Warning: kubernetes-cli 1.31.3 is already installed and up-to-date. To reinstall 1.31.3, run: brew reinstall kubernetes-cli ➜ ~ minikube kubectl -- get po -A

kubectl.sha256: 64 B / 64 B [-------------------------] 100.00% ? p/s 0s kubectl: 53.94 MiB / 53.94 MiB [-------------] 100.00% 8.30 MiB p/s 6.7s error: no server found for cluster "minikube" ➜ ~ ➜ ~ ➜ ~ ➜ ~ kubectl version Client Version: v1.30.2 Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3 The connection to the server localhost:8080 was refused - did you specify the right host or port? ➜ ~ ➜ ~ brew uninstall kubectl Error: Refusing to uninstall /opt/homebrew/Cellar/kubernetes-cli/1.31.3 because it is required by minikube, which is currently installed. You can override this and force removal with: brew uninstall --ignore-dependencies kubectl ➜ ~ brew uninstall --ignore-dependencies kubectl Uninstalling /opt/homebrew/Cellar/kubernetes-cli/1.31.3... (237 files, 60.2MB) ➜ ~ ➜ ~ ➜ ~ brew install kubectl ==> Downloading https://ghcr.io/v2/homebrew/core/kubernetes-cli/manifests/1.31.3 Already downloaded: /Users/tipsbe/Library/Caches/Homebrew/downloads/f8fd19d10e239038f339af3c9b47978cb154932f089fbf6b7d67ea223df378de--kubernetes-cli-1.31.3.bottle_manifest.json ==> Fetching kubernetes-cli ==> Downloading https://ghcr.io/v2/homebrew/core/kubernetes-cli/blobs/sha256:118193fcf9a4f91c21f0583589388ae6dc287963e591642f7d69418a94a71a20 Already downloaded: /Users/tipsbe/Library/Caches/Homebrew/downloads/a1f5be82508d352b5b044d65d632f07f0841dc11db7edfe2716d7d4d0a678065--kubernetes-cli--1.31.3.arm64_sonoma.bottle.tar.gz ==> Pouring kubernetes-cli--1.31.3.arm64_sonoma.bottle.tar.gz ==> Caveats zsh completions have been installed to: /opt/homebrew/share/zsh/site-functions ==> Summary 🍺 /opt/homebrew/Cellar/kubernetes-cli/1.31.3: 237 files, 60.2MB ==> Running brew cleanup kubernetes-cli... Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP. Hide these hints with HOMEBREW_NO_ENV_HINTS (see man brew). ➜ ~ ➜ ~ ➜ ~ kubectl version Client Version: v1.30.2 Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3 The connection to the server localhost:8080 was refused - did you specify the right host or port? ➜ ~ ➜ ~ ➜ ~ ➜ ~ ➜ ~ ➜ ~ ➜ ~ ➜ ~ ➜ ~ ➜ ~ minikube start 😄 minikube v1.34.0 on Darwin 14.6.1 (arm64) ✨ Automatically selected the docker driver 📌 Using Docker Desktop driver with root privileges 👍 Starting "minikube" primary control-plane node in "minikube" cluster 🚜 Pulling base image v0.0.45 ... 💾 Downloading Kubernetes v1.31.0 preload ... preloaded-images-k8s-v18-v1...: 307.61 MiB / 307.61 MiB 100.00% 6.82 Mi gcr.io/k8s-minikube/kicbase...: 441.45 MiB / 441.45 MiB 100.00% 5.27 Mi 🔥 Creating docker container (CPUs=2, Memory=7788MB) ... 🐳 Preparing Kubernetes v1.31.0 on Docker 27.2.0 ... ▪ Generating certificates and keys ... ▪ Booting up control plane ... ▪ Configuring RBAC rules ... 🔗 Configuring bridge CNI (Container Networking Interface) ... 🔎 Verifying Kubernetes components... ▪ Using image gcr.io/k8s-minikube/storage-provisioner:v5 🌟 Enabled addons: storage-provisioner, default-storageclass 🏄 Done! kubectl is now configured to use "minikube" cluster and "default" namespace by default

Operating System

macOS (Default)

Driver

Docker

T-Lakshmi commented 4 days ago

@anonystick, Looks you have successfully installed minikube and kubectl.

What is the issue you are facing? please describe the issue in detail. If your issue is already fixed and no problem you have currently, please close this issue.

T-Lakshmi commented 4 days ago

/triage needs-information /kind support