Git Product home page Git Product logo

Comments (14)

BenTheElder avatar BenTheElder commented on May 27, 2024 1

Same issue I met.

This is a symptom, not a root issue. The symptom is that the api server is not healthy. Possible causes are many and unrelated.

Please fill out a bug report after checking for known issues first (some issues are only resolvable on your end due to host limitation and are NOT kind bugs) https://kind.sigs.k8s.io/docs/user/known-issues/#troubleshooting-kind

This log only tells us that the api server didn't come up healthy, to know why we need the files from kind export logs, and more information about the host environment.

from kind.

liangyuanpeng avatar liangyuanpeng commented on May 27, 2024

You can follow the https://kind.sigs.k8s.io/docs/user/known-issues/#troubleshooting-kind try to find more message for it.

from kind.

KubeKyrie avatar KubeKyrie commented on May 27, 2024

Same issue I met.

from kind.

KubeKyrie avatar KubeKyrie commented on May 27, 2024

Hi @BenTheElder thanks for your advice.
And I have added more information about this error in the issue, could you help find out what the problem is?

from kind.

BenTheElder avatar BenTheElder commented on May 27, 2024

Given the other info in your case it's because RHEL 7 has a kernel that is too old: #3311 (comment)

from kind.

a1exus avatar a1exus commented on May 27, 2024

kubernetes/minikube#18692

i'm hitting same issue with kind as i do with minikube, i also have this:

ERROR: UserNS: memory controller needs to be delegated #18692

toor@suey:~$ cat /etc/systemd/system/[email protected]/delegate.conf 
[Service]
Delegate=cpu cpuset io memory pids
toor@suey:~$ sudo systemctl daemon-reload
toor@suey:~$ echo $?
0
toor@suey:~$ 

from kind.

BenTheElder avatar BenTheElder commented on May 27, 2024

Hi @a1exus, please see: #3569 (comment)

EDIT: too many issues, I'm sorry, you filed the original post here đŸ¤Ļ‍♂ī¸

As for delegation: we document our approach to rootless here https://kind.sigs.k8s.io/docs/user/rootless/, which has some other tests/requirements.

from kind.

BenTheElder avatar BenTheElder commented on May 27, 2024

For podman see in particular https://kind.sigs.k8s.io/docs/user/rootless/#creating-a-kind-cluster-with-rootless-podman

from kind.

a1exus avatar a1exus commented on May 27, 2024
toor@suey:~$ cat /etc/systemd/system/[email protected]/delegate.conf | grep -v ^#
[Service]
Delegate=yes
toor@suey:~$ test -d /etc/systemd/system/[email protected]/
toor@suey:~$ echo $?
0
toor@suey:~$ sudo systemctl daemon-reload
[sudo] password for toor: 
toor@suey:~$ echo $?
0
toor@suey:~$ 

i restart host number of times, still not able to create cluster for same reason as stated in issue

from kind.

a1exus avatar a1exus commented on May 27, 2024

https://kind.sigs.k8s.io/docs/user/rootless/#creating-a-kind-cluster-with-rootless-podman

toor@suey:~$ KIND_EXPERIMENTAL_PROVIDER=podman kind create cluster --retain 
using podman due to KIND_EXPERIMENTAL_PROVIDER
enabling experimental podman provider
ERROR: failed to create cluster: running kind with rootless provider requires setting systemd property "Delegate=yes", see https://kind.sigs.k8s.io/docs/user/rootless/
toor@suey:~$ 
toor@suey:~$ cat /etc/systemd/system/[email protected]/delegate.conf | grep -v ^#
[Service]
Delegate=yes
toor@suey:~$ 

from kind.

a1exus avatar a1exus commented on May 27, 2024

https://kind.sigs.k8s.io/docs/user/rootless/#creating-a-kind-cluster-with-rootless-docker

toor@suey:~$ export DOCKER_HOST=unix://${XDG_RUNTIME_DIR}/docker.sock
toor@suey:~$ kind create cluster --retain 
ERROR: failed to create cluster: failed to list nodes: command "docker ps -a --filter label=io.x-k8s.kind.cluster=kind --format '{{.Names}}'" failed with error: exit status 1
Command Output: Cannot connect to the Docker daemon at unix:///run/user/1000/docker.sock. Is the docker daemon running?
toor@suey:~$ 
toor@suey:~$ systemctl status docker.service 
● docker.service - Docker Application Container Engine
     Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; preset: enabled)
     Active: active (running) since Wed 2024-04-24 22:22:48 EDT; 8min ago
TriggeredBy: ● docker.socket
       Docs: https://docs.docker.com
   Main PID: 1953 (dockerd)
      Tasks: 16
        CPU: 852ms
     CGroup: /system.slice/docker.service
             └─1953 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock

Warning: some journal files were not opened due to insufficient permissions.
toor@suey:~$ 

from kind.

BenTheElder avatar BenTheElder commented on May 27, 2024

see the note about "On some distributions, you might need to use systemd-run to start kind into its own cgroup scope:" for podman

from kind.

a1exus avatar a1exus commented on May 27, 2024

see the note about "On some distributions, you might need to use systemd-run to start kind into its own cgroup scope:" for podman

i actually end up fixing my issue..

toor@suey:~$ kind create cluster --retain 
Creating cluster "kind" ...
 ✓ Ensuring node image (kindest/node:v1.29.2) đŸ–ŧ
 ✓ Preparing nodes đŸ“Ļ  
 ✓ Writing configuration 📜 
 ✓ Starting control-plane 🕹ī¸ 
 ✓ Installing CNI 🔌 
 ✓ Installing StorageClass 💾 
Set kubectl context to "kind-kind"
You can now use your cluster with:

kubectl cluster-info --context kind-kind

Have a question, bug, or feature request? Let us know! https://kind.sigs.k8s.io/#community 🙂
toor@suey:~$ uname -a
Linux suey.nknwn.local 6.6.15-amd64 #1 SMP PREEMPT_DYNAMIC Kali 6.6.15-2kali1 (2024-04-09) x86_64 GNU/Linux
toor@suey:~$ 

for me issue was using kernel 5.15.5, perhaps some issues with cgroup were resolved since then.. so as soon as i updated my kernel to 6.6.15 issue went away with all other changes that i made to my system)

thanks to everyone for your help!

from kind.

BenTheElder avatar BenTheElder commented on May 27, 2024

glad you got it working and thanks for sharing the details!

from kind.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤ī¸ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.