failed to run Kubelet: cannot create certificate signing request: Unauthorized #809
Labels
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
kind/support
Categorizes issue or PR as a support question.
priority/important-longterm
Important over the long term, but may not be staffed and/or may need multiple releases to complete.
I have a K8s cluster running under an OpenStack cloud provider.
The cluster is set up using kubeadm tool which contains a master node and slave node .
I'm trying to add an other worker node by using the kubeadm join command, the command shows a positive response telling that the node is successfully added, But I can't find it using
kubectl get nodes
command.I investigated and I've found that kubelet on the new slave node is not running showing
cannot create certificate signing request: Unauthorized
.version on worker node :
kubeadm version kubeadm version: &version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.1", GitCommit:"d4ab47518836c750f9949b9e0d387f20fb92260b", GitTreeState:"clean", BuildDate:"2018-04-12T14:14:26Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"linux/amd64"}
version on master node :
command used to make the join :
get the token :
kubeadm token list | awk '/The default bootstrap token/ { print $1; }'
get the hash :
openssl x509 -pubkey -in /etc/kubernetes/pki/ca.crt | openssl rsa -pubin -outform der 2>/dev/null | openssl dgst -sha256 -hex | sed 's/^.* //'
join command:
kubeadm join --skip-preflight-checks --token {{token}} --discovery-token-ca-cert-hash sha256:{{hash}} master_ip:6443
The text was updated successfully, but these errors were encountered: