kubernetes minikube not working with mount
There are some things to consider:
- Check if you have the dashboard addon enabled:
kubectl get pods -n kube-systemkubectl describe pod <dashboard-addon-name> -n kube-system
ALSO
minikube addons list
Look for this:
...- dashboard: enabled...
To enable execute: minikube addons enable dashboard
- There might be some issue with the versions due to the changes you made. Try to execute:
minikube stopminikube deleteminikube start
before you hit:
minikube start --mount --mount-string /home/user/data:/data
Minikube needs dome time to get the pods ready. Try to simply wait a few minutes longer before trying to execute:
minikube dashboard
.Also you can check it with kubectlget pods --all-namespaces
Check your proxy configuration. You might need to add the minikube ip to the
no_proxy
env variable:
export no_proxy=$no_proxy,$(minikube ip)
- If nothing helps you'll need to dig deeper. Start from the logs:
minikube dashboard --logtostderr --v=2
Please let me know if that helped.