Bird
0
0

You tried to join a new master node to your HA cluster using this command:

medium📝 Troubleshoot Q14 of 15
Kubernetes - Production Best Practices
You tried to join a new master node to your HA cluster using this command:
kubeadm join lb.example.com:6443 --token abcdef.0123456789abcdef --discovery-token-ca-cert-hash sha256:12345
But it failed with an error about missing --control-plane flag. What is the correct fix?
ARemove the token from the command
BAdd the <code>--control-plane</code> flag to the join command
CUse <code>kubeadm init</code> instead of join
DChange the port number to 8080
Step-by-Step Solution
Solution:
  1. Step 1: Identify the error cause

    Joining a master node requires the --control-plane flag to indicate it is a control plane node.
  2. Step 2: Apply the fix

    Add --control-plane to the join command to fix the error.
  3. Final Answer:

    Add the --control-plane flag to the join command -> Option B
  4. Quick Check:

    Joining master needs --control-plane flag [OK]
Quick Trick: Joining master nodes requires --control-plane flag [OK]
Common Mistakes:
  • Removing token breaks authentication
  • Using init instead of join for adding nodes
  • Changing port to wrong value

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes