BUG REPORT
kubeadm version (use kubeadm version
):
kubeadm version: &version.Info{Major:"1", Minor:"11", GitVersion:"v1.11.2", GitCommit:"bb9ffb1654d4a729bb4cec18ff088eacc153c239", GitTreeState:"clean", BuildDate:"2018-08-07T23:14:39Z", GoVersion:"go1.10.3", Compiler:"gc", Platform:"linux/amd64"}
Environment:
kubectl version
):uname -a
):[discovery] Failed to connect to API Server "
A node joins to a cluster.
kubeadm init --apiserver-advertise-address=
kubeadm token create --ttl 0 --print-join-command
kubeadm join
kubeadm join
[preflight] running pre-flight checks
[WARNING RequiredIPVSKernelModulesAvailable]: the IPVS proxier will not be used, because the following required kernel modules are not loaded: [ip_vs_sh ip_vs ip_vs_rr ip_vs_wrr] or no builtin kernel ipvs support: map[ip_vs_sh:{} nf_conntrack_ipv4:{} ip_vs:{} ip_vs_rr:{} ip_vs_wrr:{}]
you can solve this problem with following methods:
I0911 12:17:44.349062 22906 kernel_validator.go:81] Validating kernel version
I0911 12:17:44.349204 22906 kernel_validator.go:96] Validating kernel config
[discovery] Trying to connect to API Server "
[discovery] Created cluster-info discovery client, requesting info from "https://
[discovery] Failed to connect to API Server "
[discovery] Trying to connect to API Server "
[discovery] Created cluster-info discovery client, requesting info from "https://
[discovery] Failed to connect to API Server "
^C
Any ideas?
Failed to connect to API Server "
:6443": token id "6fbvvs" is invalid for this cluster or it has expired. Use "kubeadm token create" on the master node to creating a new valid token
How about to create new token on master? Current one seems expired.
How about to create new token on master? Current one seems expired.
I want to emphasize the token's generated with ttl 0 and can't be expired.
The reason was 'Controller: Invalid --cluster-cidr, mask size of cluster CIDR must be less than --node-cidr-mask-size'