Node can't join the cluster #1326
Labels
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
priority/awaiting-more-evidence
Lowest priority. Possibly useful, but not yet enough support to actually get it done.
What keywords did you search in kubeadm issues before filing this one?
raspberry pi; invalid token; can't join
Is this a BUG REPORT or FEATURE REQUEST?
BUG REPORT
Versions
kubeadm version (use
kubeadm version
):kubeadm version: &version.Info{Major:"1", Minor:"13", GitVersion:"v1.13.1", GitCommit:"eec55b9ba98609a46fee712359c7b5b365bdd920", GitTreeState:"clean", BuildDate:"2018-12-13T10:36:44Z", GoVersion:"go1.11.2", Compiler:"gc", Platform:"linux/arm"}
Environment:
kubectl version
):Client Version: version.Info{Major:"1", Minor:"13", GitVersion:"v1.13.1", GitCommit:"eec55b9ba98609a46fee712359c7b5b365bdd920", GitTreeState:"clean", BuildDate:"2018-12-13T10:39:04Z", GoVersion:"go1.11.2", Compiler:"gc", Platform:"linux/arm"} Server Version: version.Info{Major:"1", Minor:"13", GitVersion:"v1.13.1", GitCommit:"eec55b9ba98609a46fee712359c7b5b365bdd920", GitTreeState:"clean", BuildDate:"2018-12-13T10:31:33Z", GoVersion:"go1.11.2", Compiler:"gc", Platform:"linux/arm"}
uname -a
):Linux master 4.14.34-hypriotos-v7+ #1 SMP Sun Apr 22 14:57:31 UTC 2018 armv7l GNU/Linux
What happened?
After successfully executing
sudo kubeadm init --pod-network-cidr=10.0.0.200/28 --apiserver-advertise-address=10.0.0.1
on the master node, I can't join the other nodes because of:Failed to connect to API Server "10.0.0.1:6443": token id "wpiklq" is invalid for this cluster or it has expired. Use "kubeadm token create" on the master node to creating a new valid token
I tried generating a new token, but that didn't change anything. Also I'm able to communicate between the nodes on the port 6443.(I tested the port with netcat)
What you expected to happen?
I expected that the node would join the cluster.
How to reproduce it (as minimally and precisely as possible)?
Download HypriotOS and flash it to a SD card.
Add the repo and install kubeadm.
Create a cluster on the master node.
Try to connect from the client.
Anything else we need to know?
Don't think so.
Edit: My issue is basically the same as #1108, but
The reason was 'Controller: Invalid --cluster-cidr, mask size of cluster CIDR must be less than --node-cidr-mask-size'
didn't help me that much. (Also i tried to generate a token with ttl=0)The text was updated successfully, but these errors were encountered: