minikube installation in azure ubuntu vm with docker

186 views Asked by At

I took a ubuntu virtual device in azure and connected through ssh. Installed docker and enabled. I can see docker status as "Active". I installed minikube with all prereqs. However when I try to start minikube with "minikube start" command, am getting below error.

minikube start Starting local Kubernetes cluster... E1006 13:00:41.181623 64011 start.go:83] Error starting host: Error creating new host: dial tcp: missing address. Retrying. E1006 13:00:41.197802 64011 start.go:83] Error starting host: Error creating new host: dial tcp: missing address. Retrying. E1006 13:00:41.213819 64011 start.go:83] Error starting host: Error creating new host: dial tcp: missing address. Retrying. E1006 13:00:41.213960 64011 start.go:89] Error starting host: Error creating new host: dial tcp: missing address Error creating new host: dial tcp: missing address Error creating new host: dial tcp: missing address

I tried to start minikube deployment and however it failed to start

1

There are 1 answers

0
Arko On BEST ANSWER

To install minikube using docker, create an ubuntu VM. Here I am creating an Ubuntu VM https://i.imgur.com/AC9rZDE.png

Once VM is ready, using the public IP of the VM, login to the VM using SSH. Once you've logged in, just as a basic step update your machine using https://i.imgur.com/hfQYoH1.png

Install virtual box https://i.imgur.com/J3ARCls.png

install docker https://i.imgur.com/lXzBGsg.png

restart the docker daemon and install the latest minikube stable release

$ sudo apt install -y curl wget apt-transport-https
$ curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
$ sudo install minikube-linux-amd64 /usr/local/bin/minikube

https://i.imgur.com/bh46X8Q.png Once installed, provide the necessary permission. Install kubectl

$ curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"

$ sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl

and check the Minikube and kubernetes version as below

$ kubectl version --client
$ minikube start
$ minikube status

https://i.imgur.com/BepnCKj.png

Reference document- Installing Minikube doc1 Install Minikube by Gautam Sharma