kubernetes / minikube

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

SOLVED - Cannot start minikube after plain docker desktop install on Macbook Air M1 (Sequoia) #19393

Closed dvitrano closed 3 months ago

dvitrano commented 3 months ago

What Happened?

as per title, when attempting to start minikube after a vanilla docker-desktop install on MacOS (M1+Sequoia) I get the following error "couldn't get version/kind; json parse error: json: cannot unmarshal array into Go value of type struct { APIVersion string "json:\"apiVersion,omitempty\""; Kind string "json:\"kind,omitempty\"" }" and the procedure exits

Attach the log file

MacM1_cannotstartminikube.txt

Operating System

macOS (Default)

Driver

N/A

dvitrano commented 3 months ago

Just to close the loop, the config inside .kube/ was indeed not complete and truncated after the certificates part. I was able to solve the issue doing either of the following: 1) run minikube delete, delete the existing config file, re run minikube start 2) run minikube with option --driver=qemu which was indeed able to at least start -> afterwards I've delete the cluster and re-create again with standard docker driver. I'm more inclined to think that 1) did the trick. Hope this may help someone else.

T-Lakshmi commented 3 months ago

@dvitrano, As per above comment, i hope your issue has resolved. Please close the issue.