starthost failed, but will try again: config: please provide an ip address

starthost failed, but will try again: config: please provide an ip address

Exiting due to GUEST_PROVISION: Failed to start host: config: please provide an IP address : Error with kubernetes and minikube minikube

Introduction – Exiting due to GUEST_PROVISION

So, if you are trying to start the kubernetes tutorial from https://kubernetes.io/fr/docs/setup/learning-environment/minikube and you want to start minikube by the command :

minikube start

Then, you are getting this error :

minikube v1.17.1 sur Darwin 10.15.7
  Utilisation du pilote ssh basé sur le profil existant
  Démarrage du noeud de plan de contrôle minikube dans le cluster minikube
  StartHost failed, but will try again: config: please provide an IP address
  Failed to start ssh bare metal machine. Running "minikube delete" may fix it: config: please provide an IP address

  Exiting due to GUEST_PROVISION: Failed to start host: config: please provide an IP address

  If the above advice does not help, please let us know: 
  https://github.com/kubernetes/minikube/issues/new/choose

Solution – starthost failed, but will try again: config: please provide an ip address

And, the best way to solve this problem is to run the following command. Also you can find information on https://minikube.sigs.k8s.io/docs/drivers/ssh/

If you are running with docker you will find on https://minikube.sigs.k8s.io/docs/drivers/docker/ what i have done is to delete the last minkube cluster and rerun with the command specify the docker :

minikube delete

You will get :

  Désinstallation de Kubernetes v1.20.2 à l'aide de kubeadm…
  Trying to delete invalid profile minikube

And then :

minikube start --driver=docker

This is working :

  minikube v1.17.1 sur Darwin 10.15.7
  Utilisation du pilote docker basé sur la configuration de l'utilisateur
  Démarrage du noeud de plan de contrôle minikube dans le cluster minikube
  Pulling base image ...

Internal links :

https://128mots.com/index.php/en/2021/01/31/unable-to-pick-a-default-driver/
https://128mots.com/index.php/en/2021/01/31/unable-to-pick-a-default-driver/
https://128mots.com/index.php/en/2021/01/31/runtimeerror-attempting-to-deserialize-object/
https://128mots.com/index.php/2021/01/31/installer-kubernetes-mac/

Leave a Reply

Your email address will not be published. Required fields are marked *