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

Unable to start the minikube on ubuntu 18.0 cloud 9 environment #7782

Closed
Anumshr opened this issue Apr 19, 2020 · 4 comments
Closed

Unable to start the minikube on ubuntu 18.0 cloud 9 environment #7782

Anumshr opened this issue Apr 19, 2020 · 4 comments
Labels
co/none-driver kind/support Categorizes issue or PR as a support question. needs-solution-message Issues where where offering a solution for an error would be helpful

Comments

@Anumshr
Copy link

Anumshr commented Apr 19, 2020

Steps to reproduce the issue:

installed kubectl

curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl

#installed docker
sudo apt install -y docker.io

#install minikube
curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
&& chmod +x minikube
sudo mkdir -p /usr/local/bin/
sudo install minikube /usr/local/bin/

Full output of failed command:
sudo minikube start –vm-driver=none –extra-config=kubeadm.ignore-preflight-errors=NumCPU –force –cpus 1

  • minikube v1.9.2 on Ubuntu 18.04
  • Using the none driver based on existing profile
  • Starting control plane node in cluster minikube
  • Restarting existing none bare metal machine for "minikube" ...
  • OS release is Ubuntu 18.04.4 LTS
  • Preparing Kubernetes v1.18.0 on Docker 19.03.8 ...
    • kubelet.resolv-conf=/run/systemd/resolve/resolv.conf
      ! initialization failed, will try again: run: /bin/bash -c "sudo env PATH=/var/lib/minikube/binaries/v1.18.0:$PATH kubeadm init --config /var/tmp/minikube/kubeadm.yaml --ignore-preflight-errors=DirAvailable--etc-kubernetes-manifests,DirAvailable--var-lib-minikube,DirAvailable--var-lib-minikube-etcd,FileAvailable--etc-kubernetes-manifests-kube-scheduler.yaml,FileAvailable--etc-kubernetes-manifests-kube-apiserver.yaml,FileAvailable--etc-kubernetes-manifests-kube-controller-manager.yaml,FileAvailable--etc-kubernetes-manifests-etcd.yaml,Port-10250,Swap,SystemVerification": exit status 1
      stdout:
      [init] Using Kubernetes version: v1.18.0
      [preflight] Running pre-flight checks

stderr:
W0419 09:29:38.039336 20720 configset.go:202] WARNING: kubeadm cannot validate component configs for API groups [kubelet.config.k8s.io kubeproxy.config.k8s.io]
[WARNING IsDockerSystemdCheck]: detected "cgroupfs" as the Docker cgroup driver. The recommended driver is "systemd". Please follow the guide at https://kubernetes.io/docs/setup/cri/
[WARNING Swap]: running with swap on is not supported. Please disable swap
[WARNING FileExisting-socat]: socat not found in system path
error execution phase preflight: [preflight] Some fatal errors occurred:
[ERROR NumCPU]: the number of available CPUs 1 is less than the required 2
[preflight] If you know what you are doing, you can make a check non-fatal with --ignore-preflight-errors=...
To see the stack trace of this error execute with --v=5 or higher

X Error starting cluster: run: /bin/bash -c "sudo env PATH=/var/lib/minikube/binaries/v1.18.0:$PATH kubeadm init --config /var/tmp/minikube/kubeadm.yaml --ignore-preflight-errors=DirAvailable--etc-kubernetes-manifests,DirAvailable--var-lib-minikube,DirAvailable--var-lib-minikube-etcd,FileAvailable--etc-kubernetes-manifests-kube-scheduler.yaml,FileAvailable--etc-kubernetes-manifests-kube-apiserver.yaml,FileAvailable--etc-kubernetes-manifests-kube-controller-manager.yaml,FileAvailable--etc-kubernetes-manifests-etcd.yaml,Port-10250,Swap,SystemVerification": exit status 1
stdout:
[init] Using Kubernetes version: v1.18.0
[preflight] Running pre-flight checks

stderr:
W0419 09:29:38.781178 20854 configset.go:202] WARNING: kubeadm cannot validate component configs for API groups [kubelet.config.k8s.io kubeproxy.config.k8s.io]
[WARNING IsDockerSystemdCheck]: detected "cgroupfs" as the Docker cgroup driver. The recommended driver is "systemd". Please follow the guide at https://kubernetes.io/docs/setup/cri/
[WARNING Swap]: running with swap on is not supported. Please disable swap
[WARNING FileExisting-socat]: socat not found in system path
error execution phase preflight: [preflight] Some fatal errors occurred:
[ERROR NumCPU]: the number of available CPUs 1 is less than the required 2
[preflight] If you know what you are doing, you can make a check non-fatal with --ignore-preflight-errors=...
To see the stack trace of this error execute with --v=5 or higher

Full output of minikube start command used, if not already included:

Optional: Full output of minikube logs command:

@afbjorklund afbjorklund added co/none-driver needs-solution-message Issues where where offering a solution for an error would be helpful kind/support Categorizes issue or PR as a support question. labels Apr 19, 2020
@afbjorklund
Copy link
Collaborator

@Anumshr your VM needs to have at least 2 CPU

@afbjorklund
Copy link
Collaborator

But apparently we don't read any existing kubeadm.ignore-preflight-errors properly.

In theory it is supposed to merge these, with whatever minikube is adding to them.

@afbjorklund
Copy link
Collaborator

afbjorklund commented Apr 19, 2020

Restarting existing none bare metal machine for "minikube" ...

I think the "existing" was the problem here. That extra config was only read from the original start.

In order to change such things, the old machine needs to be deleted. But 1 CPU is still not supported.

--extra-config=kubeadm.ignore-preflight-errors=NumCPU --force --cpus 1

@priyawadhwa
Copy link

Hey @Anumshr I'm going to go ahead and close this issue, as we have now documented the need for at least 2 CPUs.

If you have any additional questions or see other bugs, please open another issue in the repo!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
co/none-driver kind/support Categorizes issue or PR as a support question. needs-solution-message Issues where where offering a solution for an error would be helpful
Projects
None yet
Development

No branches or pull requests

3 participants