Welcome to the Linux Foundation Forum!

Lab 3.3 Both nodes are listed with Roles as "master".

Lab 3.3 Both nodes are listed with Roles as "master". Is that expected or something need to be fixed?

kubectl get nodes
NAME STATUS ROLES AGE VERSION
ip-xxxx Ready master 11m v1.18.1
ip-yyyyy Ready master 44m v1.18.1

Comments

  • Nevermind, I figured out what went wrong. I passed this argument "-control-plane --certificate-key" to kubeadm join command which added my second node as master instead of worker.
    I fixed it by running 1) kubeadm reset 2) delete the second master node kubectl delete node 3) Running kubeadm join command again without the control plane argument.

  • chrispokorni
    chrispokorni Posts: 2,155

    Nice troubleshooting @vijaydreamz! ;)

  • Thanks @chrispokorni Hope the steps will be useful for someone who run into similar issue.

  • Same happened to me and yes, it was useful

Categories

Upcoming Training