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,260 points
4,194 views

1 answer to this question.

0 votes

Hi@akhtar,

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 [kubelet.config.k8s.io kubeproxy.config.k8s.io]
kubeadm join 192.168.0.105:6443 --token zr8wry.77vfs2emdhscts5k     --discovery-token-ca-cert-hash sha256:741b98a5752662e1630868ca678a146654eeb12a4a5025fe64b76f4a3d788815

Hope it helps!

To know more, join our Kubernetes training in Mumbai today.

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

edited Oct 6, 2021 by Sarfaraz

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
15,476 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,035 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,460 points
1,641 views
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,460 points
1,167 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP