Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with k8s.io/docs/tasks/tools/install-minikube/ #13808

Closed
ghost opened this issue Apr 13, 2019 · 6 comments
Closed

Issue with k8s.io/docs/tasks/tools/install-minikube/ #13808

ghost opened this issue Apr 13, 2019 · 6 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@ghost
Copy link

ghost commented Apr 13, 2019

This is a Bug Report

Problem:
Running minikube start as the setup guide suggests yields the following failure:

james@james-desktop:~$ cat /etc/*-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.10
DISTRIB_CODENAME=cosmic
DISTRIB_DESCRIPTION="Ubuntu 18.10"
NAME="Ubuntu"
VERSION="18.10 (Cosmic Cuttlefish)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.10"
VERSION_ID="18.10"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=cosmic
UBUNTU_CODENAME=cosmic
james@james-desktop:~$ curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 \
>   && chmod +x minikube
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 38.2M  100 38.2M    0     0  6992k      0  0:00:05  0:00:05 --:--:-- 7456k
james@james-desktop:~$ sudo cp minikube /usr/local/bin && rm minikube
james@james-desktop:~$ minikube start
😄  minikube v1.0.0 on linux (amd64)
🤹  Downloading Kubernetes v1.14.0 images in the background ...
2019/04/13 20:05:33 No matching credentials were found, falling back on anonymous
2019/04/13 20:05:33 No matching credentials were found, falling back on anonymous
2019/04/13 20:05:33 No matching credentials were found, falling back on anonymous
2019/04/13 20:05:33 No matching credentials were found, falling back on anonymous
2019/04/13 20:05:33 No matching credentials were found, falling back on anonymous
2019/04/13 20:05:33 No matching credentials were found, falling back on anonymous
2019/04/13 20:05:33 No matching credentials were found, falling back on anonymous
2019/04/13 20:05:33 No matching credentials were found, falling back on anonymous
2019/04/13 20:05:33 No matching credentials were found, falling back on anonymous
2019/04/13 20:05:33 No matching credentials were found, falling back on anonymous
🔥  Creating virtualbox VM (CPUs=2, Memory=2048MB, Disk=20000MB) ...
💿  Downloading Minikube ISO ...
2019/04/13 20:05:33 No matching credentials were found, falling back on anonymous
2019/04/13 20:05:33 No matching credentials were found, falling back on anonymous
2019/04/13 20:05:33 No matching credentials were found, falling back on anonymous
 142.88 MB / 142.88 MB [============================================] 100.00% 0s
📶  "minikube" IP address is 192.168.99.105
🐳  Configuring Docker as the container runtime ...
🐳  Version of container runtime is 18.06.2-ce
⌛  Waiting for image downloads to complete ...
✨  Preparing Kubernetes environment ...
💾  Downloading kubeadm v1.14.0
💾  Downloading kubelet v1.14.0

💣  Failed to setup kubeconfig: writing kubeconfig: Error writing file : open : no such file or directory

😿  Sorry that minikube crashed. If this was unexpected, we would love to hear from you:
👉  https://github.com/kubernetes/minikube/issues/new

I found running sudo minikube start lets minikube start successfully:

james@james-desktop:~$ sudo minikube start
😄  minikube v1.0.0 on linux (amd64)
🤹  Downloading Kubernetes v1.14.0 images in the background ...
🔥  Creating virtualbox VM (CPUs=2, Memory=2048MB, Disk=20000MB) ...
📶  "minikube" IP address is 192.168.99.107
🐳  Configuring Docker as the container runtime ...
🐳  Version of container runtime is 18.06.2-ce
⌛  Waiting for image downloads to complete ...
✨  Preparing Kubernetes environment ...
🚜  Pulling images required by Kubernetes v1.14.0 ...
🚀  Launching Kubernetes v1.14.0 using kubeadm ... 
⌛  Waiting for pods: apiserver proxy etcd scheduler controller dns
🔑  Configuring cluster permissions ...
🤔  Verifying component health .....
💗  kubectl is now configured to use "minikube"
💡  For best results, install kubectl: https://kubernetes.io/docs/tasks/tools/install-kubectl/
🏄  Done! Thank you for using minikube!

However any further interaction with minikube / kubectl also requires the use of sudo to function properly which is not desirable.

Page to Update:
https://kubernetes.io/docs/tasks/tools/install-minikube/

@tstromberg
Copy link
Contributor

Issue moved to kubernetes/minikube #4100 via ZenHub

@tstromberg
Copy link
Contributor

The error message indicates that minikube wasn't able to update ~/.kube/config, but I'm also at a loss to explain why it isn't showing the path. I've moved the bug to the minikube repo to investigate it there.

Anyways, sudo shouldn't be required for minikube.

@tstromberg
Copy link
Contributor

Update: It looks like I don't have permissions to close issues here. :(

@DanyC97
Copy link
Contributor

DanyC97 commented Apr 15, 2019

@tstromberg many thanks to you and @afbjorklund for responding so quickly here & slack.
I'll close this issue now that it was moved to minikube repo

@DanyC97
Copy link
Contributor

DanyC97 commented Apr 15, 2019

/close

@k8s-ci-robot
Copy link
Contributor

@DanyC97: Closing this issue.

In response to this:

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

3 participants