Skip to content
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

add-worker not joining node to cluster #304

Closed
kozy opened this issue Dec 13, 2019 · 1 comment
Closed

add-worker not joining node to cluster #304

kozy opened this issue Dec 13, 2019 · 1 comment

Comments

@kozy
Copy link

kozy commented Dec 13, 2019

Hi and thanks for the useful tool!

This is related or duplicate of #257.

It seems that cluster add-worker returns successful after a while but the node never joined the cluster.

Trying the join command manually on the node:

kubeadm join 10.0.1.1:6443 --token xxx.xxxxxxx --discovery-token-ca-cert-hash sha256:d3359f<snip>

results in error:

Failed to connect to API Server "10.0.1.1:6443": cluster CA found in cluster-info configmap is invalid: none of the public keys "sha256:f2753<snip>" are pinned

So it seems the discovery token ca cert hash is wrongly generated by the master node after running kubeadm token create --print-join.

Substituting with the ca cert hash from the error i get:

I1213 16:07:17.476782 22375 round_trippers.go:443] GET https://10.0.1.1:6443/api/v1/namespaces/kube-public/configmaps/cluster-info in 62 milliseconds I1213 16:07:17.476809 22375 round_trippers.go:449] Response Headers: I1213 16:07:17.476868 22375 token.go:146] [discovery] Failed to request cluster info, will try again: [Get https://10.0.1.1:6443/api/v1/namespaces/kube-public/configmaps/cluster-info: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "kubernetes")]

Any ideas? Thanks!

@kozy
Copy link
Author

kozy commented Dec 30, 2019

this project is really nice in its simplicity to use but maybe a bit defunct

@kozy kozy closed this as completed Dec 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant