2
respostas

Erro ao realizar o comando minikube start

Estou recebendo erros após colocar o comando "minikube start"

Segue o log com os erros:

C:\Cursos\alura-kubernetes\projeto\kubernetes-config>minikube start
There is a newer version of minikube available (v1.2.0).  Download it here:
https://github.com/kubernetes/minikube/releases/tag/v1.2.0

To disable this notification, run the following:
minikube config set WantUpdateNotification false
Starting local Kubernetes v1.7.5 cluster...
Starting VM...
Downloading Minikube ISO
 106.36 MB / 106.36 MB [============================================] 100.00% 0s
E0719 09:51:34.294335    9644 start.go:143] Error starting host: Error creating host: Error executing step: Provisioning VM.
: Temporary Error: ssh command error:
command : sudo systemctl -f restart docker
err     : Process exited with status 1
output  : Job for docker.service failed because the control process exited with error code.
See "systemctl status docker.service" and "journalctl -xe" for details.

...
 Retrying.
E0719 09:51:34.295067    9644 start.go:149] Error starting host:  Error creating host: Error executing step: Provisioning VM.
: Temporary Error: ssh command error:
command : sudo systemctl -f restart docker
err     : Process exited with status 1
output  : Job for docker.service failed because the control process exited with error code.
See "systemctl status docker.service" and "journalctl -xe" for details.

...
An error has occurred. Would you like to opt in to sending anonymized crash
information to minikube to help prevent future errors?
To opt out of these messages, run the command:
        minikube config set WantReportErrorPrompt false
================================================================================
Please enter your response [Y/n]:

Vi em outro tópico que o curso está desatualizado e que não há previsão de atualiza-lo.

Gostaria de saber se é possível de seguir o curso, mesmo ele estando desatualizado também. Obrigado.

2 respostas

Oi, Rogerio, tudo bem?

Você já atualizou a versão do minikube? É importante atualizar. Aqui: https://github.com/kubernetes/minikube/issues/3517 tem uma solução para o erro que você teve, segue e nos fale se deu certo.

Sobre o curso está desatualizado: o curso dá uma base sólida fundamental para trabalhar com kubernetes, então, continue, vai ser importante pro seu conhecimento na área :}

Oi, Lais. td bem e vc? dei uma lida nos topicos de instalação do kubernetes e do minikube e antes de instalar o minikube, pede para verificar o kubectl e depois o minikube. Foi o que eu fiz com o comando abaixo:

kubectl version
Client Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.0", GitCommit:"d3ada0119e776222f11ec7945e6d860061339aad", GitTreeState:"clean", BuildDate:"2017-06-29T23:15:59Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"windows/amd64"}
Unable to connect to the server: dial tcp [::1]:8080: connectex: No connection could be made because the target machine actively refused it.

C:\tools\kubernetes>minikube version
minikube version: v0.22.1

Achei estranho esse retorno do kubectl version e não sei se está correto.

Também segui a orientação de colocar o path onde está o arquivo do kubectl e minikube acima do docker nas variaveis de ambiente do sistema.

Vi o issue q vc me passou e tentei colocar o comando que ele passou:

minikube start --alsologtostderr --kubernetes-version v1.13.2 --docker-env HTTP_PROXY=http://10.0.2.2:3128 --docker-env HTTPS_PROXY=http://10.0.2.2:3128 --docker-env NO_PROXY=10.0.2.2,192.168.99.100

apenas retirei o proxy, pq entendi assim, já que acho que aqui n tem proxy:

minikube start --alsologtostderr --kubernetes-version v1.13.2 --docker-env NO_PROXY=10.0.2.2,192.168.99.100

e recebi esse log:

C:\tools\kubernetes>minikube start --alsologtostderr --kubernetes-version v1.13.2 --docker-env NO_PROXY=10.0.2.2,192.168.99.100
W0722 10:11:39.741184    6152 root.go:147] Error reading config file at C:\Users\Rogerio\.minikube\config\config.json: open C:\Users\Rogerio\.minikube\config\config.json: The system cannot find the file specified.
I0722 10:11:39.876832    6152 notify.go:112] Checking for updates...
There is a newer version of minikube available (v1.2.0).  Download it here:
https://github.com/kubernetes/minikube/releases/tag/v1.2.0

To disable this notification, run the following:
minikube config set WantUpdateNotification false
I0722 10:11:40.061049    6152 cache_images.go:154] Attempting to cache image: gcr.io/google_containers/pause-amd64:3.0 at C_\Users\Rogerio\.minikube\cache\images\gcr.io\google_containers\pause-amd64_3.0
I0722 10:11:40.061049    6152 cache_images.go:154] Attempting to cache image: gcr.io/google_containers/kubernetes-dashboard-amd64:v1.6.3 at C_\Users\Rogerio\.minikube\cache\images\gcr.io\google_containers\kubernetes-dashboard-amd64_v1.6.3
I0722 10:11:40.061049    6152 cache_images.go:154] Attempting to cache image: gcr.io/google_containers/k8s-dns-kube-dns-amd64:1.14.4 at C_\Users\Rogerio\.minikube\cache\images\gcr.io\google_containers\k8s-dns-kube-dns-amd64_1.14.4
I0722 10:11:40.061049    6152 cache_images.go:154] Attempting to cache image: gcr.io/google_containers/k8s-dns-sidecar-amd64:1.14.4 at C_\Users\Rogerio\.minikube\cache\images\gcr.io\google_containers\k8s-dns-sidecar-amd64_1.14.4
I0722 10:11:40.061049    6152 cache_images.go:154] Attempting to cache image: gcr.io/google_containers/k8s-dns-dnsmasq-nanny-amd64:1.14.4 at C_\Users\Rogerio\.minikube\cache\images\gcr.io\google_containers\k8s-dns-dnsmasq-nanny-amd64_1.14.4
I0722 10:11:40.061049    6152 cache_images.go:154] Attempting to cache image: gcr.io/google-containers/kube-addon-manager:v6.4-beta.2 at C_\Users\Rogerio\.minikube\cache\images\gcr.io\google-containers\kube-addon-manager_v6.4-beta.2
I0722 10:11:40.303098    6152 kubernetes_versions.go:84] [{v1.10.0} {v1.9.4} {v1.9.0} {v1.8.0} {v1.7.5} {v1.7.4} {v1.7.3} {v1.7.2} {v1.7.0} {v1.7.0-rc.1} {v1.7.0-alpha.2} {v1.6.4} {v1.6.3} {v1.6.0} {v1.6.0-rc.1} {v1.6.0-beta.4} {v1.6.0-beta.3} {v1.6.0-beta.2} {v1.6.0-alpha.1} {v1.6.0-alpha.0} {v1.5.3} {v1.5.2} {v1.5.1} {v1.4.5} {v1.4.3} {v1.4.2} {v1.4.1} {v1.4.0} {v1.3.7} {v1.3.6} {v1.3.5} {v1.3.4} {v1.3.3} {v1.3.0}]
Invalid Kubernetes version.
The following Kubernetes versions are available:
        - v1.10.0
        - v1.9.4
        - v1.9.0
        - v1.8.0
        - v1.7.5
        - v1.7.4
        - v1.7.3
        - v1.7.2
        - v1.7.0
        - v1.7.0-rc.1
        - v1.7.0-alpha.2
        - v1.6.4
        - v1.6.3
        - v1.6.0
        - v1.6.0-rc.1
        - v1.6.0-beta.4
        - v1.6.0-beta.3
        - v1.6.0-beta.2
        - v1.6.0-alpha.1
        - v1.6.0-alpha.0
        - v1.5.3
        - v1.5.2
        - v1.5.1
        - v1.4.5
        - v1.4.3
        - v1.4.2
        - v1.4.1
        - v1.4.0
        - v1.3.7
        - v1.3.6
        - v1.3.5
        - v1.3.4
        - v1.3.3
        - v1.3.0

alguma sugestão de quais versões usar? Obrigado.

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software