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

Issues with Setting up Minikube for gvisor #28

Open
ssarbadh opened this issue Apr 12, 2024 · 2 comments
Open

Issues with Setting up Minikube for gvisor #28

ssarbadh opened this issue Apr 12, 2024 · 2 comments

Comments

@ssarbadh
Copy link

There are multiple issues for setting up minikube when using Ubuntu 22.04 LTS

  1. There is no ubuntu user - Need to add an ubuntu user and then add it to docker group
useradd -m ubuntu -s /bin/bash
chown -R ubuntu.ubuntu /home/ubuntu
sudo usermod -aG docker ubuntu
  1. While running minikube start - minikube fails at
[wait-control-plane] Waiting for the kubelet to boot up the control plane as static Pods from directory "/etc/kubernetes/manifests". This can take up to 4m0s
[kubelet-check] Initial timeout of 40s passed.

	Unfortunately, an error has occurred:
		timed out waiting for the condition

	This error is likely caused by:
		- The kubelet is not running
		- The kubelet is unhealthy due to a misconfiguration of the node in some way (required cgroups disabled)

There is no mention of setting up kubelet in the video or document ?

@ssarbadh
Copy link
Author

Solution -

Setup a newer version of minikube

 wget https://github.com/kubernetes/minikube/releases/download/v1.32.0/minikube-linux-amd64
root@minikube-01:~# mv minikube-linux-amd64 minikube
root@minikube-01:~# chmod +x minikube
root@minikube-01:~# mv minikube /usr/local/bin/
root@minikube-01:~# minikube version
minikube version: v1.32.0
commit: 8220a6eb95f0a4d75f7f2d7b14cef975f050512d
minikube start --container-runtime=containerd  --docker-opt containerd=/var/run/containerd/containerd.sock --v=5 --extra-config=kubelet.cgroup-driver=systemd

@ssarbadh
Copy link
Author

Also use a server with atleast 4 GB ram or may be restrict the minikube memory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant