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 in Kubernetes by akhtar
• 27,980 points
64 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

answered Sep 16 by MD
• 64,820 points

Related Questions In Kubernetes

0 votes
2 answers
0 votes
1 answer
0 votes
1 answer

Create LoadBalancer for kubernetes cluster in aws

Hello @Lina, If you're running your cluster on ...READ MORE

answered Oct 8, 2018 in Kubernetes by Kalgi
• 51,970 points
137 views
+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
8,710 views
+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
• 51,970 points

reshown Apr 12, 2019 by Kalgi 2,629 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 in Kubernetes by MD
• 64,820 points
193 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 in Kubernetes by MD
• 64,820 points
73 views