How to create token for worker node in Kubernetes Cluster

0 votes

Hi Guys,

I have configured the Kubernmeets Master node. Now I want to add a worker node to this cluster. But how can I generate a token for worker node?

Sep 16, 2020 in Kubernetes by akhtar
• 38,210 points

1 answer to this question.

0 votes


You will get your token when you run Kubeadm init command. But if you forgot to save the token, then you can use the below command to regenerate your token.

$ kubeadm token create  --print-join-command
W0916 17:24:14.722125   29358 configset.go:348] WARNING: kubeadm cannot validate component configs for API groups []
kubeadm join --token zr8wry.77vfs2emdhscts5k     --discovery-token-ca-cert-hash sha256:741b98a5752662e1630868ca678a146654eeb12a4a5025fe64b76f4a3d788815

answered Sep 16, 2020 by MD
• 95,300 points

Related Questions In Kubernetes

0 votes
2 answers
0 votes
1 answer
+1 vote
1 answer
0 votes
3 answers

Error while joining cluster with node

Hi Kalgi after following above steps it ...READ MORE

answered Jan 17, 2019 in Others by anonymous
+4 votes
1 answer

Installing Web UI (Dashboard):kubernetes-dashboard on main Ubuntu 16.04.6 LTS (Xenial Xerus) server

Follow these steps: $ kubeadm reset $ kubeadm init ...READ MORE

answered Apr 11, 2019 in Kubernetes by Kalgi
• 52,370 points

reshown Apr 12, 2019 by Kalgi 3,502 views
0 votes
1 answer

How to create one PVC in Kubernetes Cluster?

Hi@akhtar, In Kubernetes, no command is available to ...READ MORE

answered Jul 6, 2020 in Kubernetes by MD
• 95,300 points
0 votes
1 answer

How to create deployment build in kubernetes?

Hi@akhtar, To create any resources in kubernetes you ...READ MORE

answered May 18, 2020 in Kubernetes by MD
• 95,300 points