-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
RROR: failed to create cluster: failed to init node with kubeadm #1437
Comments
can you run kind with
is that docker inside vagrant on mac? any reason not to use docker desktop? do you have enough disk space in the VM? this error usually occurs when most docker things would have failed because the host is not capable. |
Same error ERROR: failed to create cluster: failed to init node with kubeadm: command "docker exec --privileged kind-control-plane kubeadm init --ignore-preflight-errors=all --config=/kind/kubeadm.conf --skip-token-print --v=6" failed with error: exit status 1 |
I'm going to need more information about your failure and your host environment to know why it isn't working for you but common reasons are:
please check the known issues |
This error just means that kubeadm was unable to bring up the control plane successfully, which generally means the host environment is unhealthy. |
@BenTheElder I appreciate your help. I'm getting that error when i'm trying to create a cluster(one master node and two worker nodes) using a config file.
|
After changing the containerPath, from |
@Seshirantha I would recommend using something like this in the kind config instead of trying to mount the config file: kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
containerdConfigPatches:
- |-
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."localhost:5000"]
endpoint = ["http://blah:5000"] (replace the patch contents with whatever you're setting in this config file) |
closing due to lack of follow-up details. |
How it could be possible to debug.
How to check the kubeadm command runs after the init process and where the logs of init? |
check against https://kind.sigs.k8s.io/docs/user/known-issues/ |
@BenTheElder thanks for the command. I see logs. It seems kubelete could not be started. because cluster was not created I could not get kubelet logs:
Is there any other way to extract logs during the boot? |
Another warning from the logs:
|
--retain will not clean up, you need that flag when creating it, then
export will work.
…On Thu, Apr 16, 2020 at 2:16 PM Michael Nikitochkin < ***@***.***> wrote:
@BenTheElder <https://github.com/BenTheElder> thanks for the command.
I see logs. It seems kubelete could not be started.
But because was not created I could not get kubelet logs:
$ kind export logs
ERROR: unknown cluster "kind"
Is there any other way to extract logs during the boot?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1437 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHADKYSE77FDGDX26XHC5LRM5YUPANCNFSM4LSGE3RA>
.
|
warnings are not failures. swap is a normal warning, kubernetes doesn't support this but we set it to allow it and it works, except for memory limits you will also see failures early on due to cni not being configured. kubeadm has many "normal" kubelet crashes early on, it's part of the design of kubeadm + kubelet that kubelet just restarts many times. |
please open a new support issue or join the slack for more interactive support help, I do not monitor closed issues as reliably. |
please check that the name of your cluster should not contain any underscore... |
PRs welcome 🙃
…On Fri, Sep 25, 2020, 03:26 TomLan42 ***@***.***> wrote:
please check that the name of your cluster should not contain any
underscore...
i bumped into the same error when i include an '_' in my cluster name
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1437 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHADK4QLMRNREZWA5L67F3SHRV4DANCNFSM4LSGE3RA>
.
|
Hello, Note: modify sysctl.conf for persistent kernel setting |
this one worked for me, thank you! |
Had the same issue - got resolved after increasing the Docker ram |
I used this comand and worked :) kind create cluster --retain -v 1 |
I experienced the same issue in Mac OS with Docker Desktop. Once I increase the resources issue went away. basically added more memory. |
SAME ISSUE : ERROR: failed to create cluster: failed to init node with kubeadm: command "docker exec --privileged kind-control-plane kubeadm init --skip-phases=preflight --config=/kind/kubeadm.conf --skip-token-print --v=6" failed with error: exit status 1 if issue is because of memory, can someone tell me how to increase it ? I have ubuntu via wsl2. |
Hi: please see: #1437 (comment) I am going to lock this issue now, please file new issues with your specific environment details. The current issue title is a symptom not a specific bug, and it is difficult to help with N different bugs threaded within the same issue. Regarding the specific issues so far:
For everyone else: If you find this issue and you are having issues creating a cluster:
We can help diagnose your specific circumstances on your issue, and if it turns out to be a unique bug in kind it will help us track fixing it. Otherwise we can also track your specific problem for updating the known issues guide, or otherwise make it easier for users to find specific problems instead of broad "cluster won't start, kubeadm failed" issues that are non-specific. |
For WSL2 (#1437 (comment)) please start with https://kind.sigs.k8s.io/docs/user/using-wsl2/, which references memory settings. |
I don't think is a good idea because that completely disables iptables on the host bridges, for sure it will work for that user if he has an environment that adds more iptables rules to the bridges, but we shouldn't promote in the website because that can also cause another undesired behaviours, ie. if there are legit iptables rules to drop traffic on a bridge those will stop to work. I think that current known issues and documentation are ok, install docker and configure firewalld correctly https://kind.sigs.k8s.io/docs/user/known-issues/#fedora32-firewalld |
What happened:
use kind create cluster then prompt:
ERROR: failed to create cluster: failed to init node with kubeadm: command "docker exec --privileged kind-control-plane kubeadm init --ignore-preflight-errors=all --config=/kind/kubeadm.conf --skip-token-print --v=6" failed with error: exit status 1
What you expected to happen:
create the cluster ok
How to reproduce it (as minimally and precisely as possible):
Mac vagrant centos/7
Client: Docker Engine - Community
Version: 19.03.8
API version: 1.40
Go version: go1.12.17
Git commit: afacb8b
Built: Wed Mar 11 01:27:04 2020
OS/Arch: linux/amd64
Experimental: false
Server: Docker Engine - Community
Engine:
Version: 19.03.8
API version: 1.40 (minimum version 1.12)
Go version: go1.12.17
Git commit: afacb8b
Built: Wed Mar 11 01:25:42 2020
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.2.13
GitCommit: 7ad184331fa3e55e52b890ea95e65ba581ae3429
runc:
Version: 1.0.0-rc10
GitCommit: dc9208a3303feef5b3839f4323d9beb36df0a9dd
docker-init:
Version: 0.18.0
GitCommit: fec3683
Anything else we need to know?:
Environment:
kind version
):kind v0.7.0 go1.13.6 linux/amd64kubectl version
):Client Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.4", GitCommit:"8d8aa39598534325ad77120c120a22b3a990b5ea", GitTreeState:"clean", BuildDate:"2020-03-12T21:03:42Z", GoVersion:"go1.13.8", Compiler:"gc", Platform:"linux/amd64"}The connection to the server localhost:8080 was refused - did you specify the right host or port?
docker info
):19.03.8/etc/os-release
):CentOS Linux release 7.6.1810 (Core)The text was updated successfully, but these errors were encountered: