Comments (14)
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.
You can follow the https://kind.sigs.k8s.io/docs/user/known-issues/#troubleshooting-kind try to find more message for it.
from kind.
Same issue I met.
from kind.
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.
Given the other info in your case it's because RHEL 7 has a kernel that is too old: #3311 (comment)
from kind.
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.
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.
For podman see in particular https://kind.sigs.k8s.io/docs/user/rootless/#creating-a-kind-cluster-with-rootless-podman
from kind.
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.
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.
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.
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.
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.
glad you got it working and thanks for sharing the details!
from kind.
Related Issues (20)
- Log container init when max verbosity is set HOT 7
- Unable kind load docker image into node HOT 2
- How to fix the ip of a docker container created with the kind command? HOT 12
- add flag for env: KIND_EXPERIMENTAL_DOCKER_NETWORK HOT 1
- failed to create cluster: failed to init node with kubeadm, and KIND_EXPERIMENTAL_PROVIDER=podman HOT 4
- permission bug HOT 2
- Kind Support for 1.30 kubernetes HOT 7
- WARNING: Ignored YAML document with GroupVersionKind kubeadm.k8s.io/v1beta3, Kind=JoinConfiguration HOT 2
- Not able to install kind cluster wsl2 ubuntu HOT 2
- Unable to exec into pods created in kind cluster HOT 6
- DaemonSet pods scheduled on one node in my 4-workernode cluster does not get proper networking. HOT 4
- The node NotReady HOT 5
- Pod not able to connect to url login.microsoftonline.com:443 HOT 23
- Unable to skipPhases: addons/coredns HOT 9
- Mass CI Failures for NFS Tests HOT 2
- PV-PVC binding remains stuck HOT 1
- Some problems of foreign visits HOT 7
- Failed to create kind cluster HOT 3
- Creating cluster fails in M2 Macbook HOT 7
- Unable to connect to kind API server when using Kind inside Kubernetes HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
đ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google â¤ī¸ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kind.