Bird
0
0

Which of the following is the correct syntax to initialize a Kubernetes HA cluster using kubeadm with a config file named ha-config.yaml?

easy📝 Syntax Q12 of 15
Kubernetes - Production Best Practices
Which of the following is the correct syntax to initialize a Kubernetes HA cluster using kubeadm with a config file named ha-config.yaml?
Akubeadm create cluster ha-config.yaml
Bkubeadm start --config=ha-config.yaml
Ckubeadm init --config ha-config.yaml
Dkubeadm init ha-config.yaml
Step-by-Step Solution
Solution:
  1. Step 1: Recall kubeadm init syntax

    The correct command to initialize a cluster with a config file is kubeadm init --config filename.
  2. Step 2: Check options

    kubeadm init --config ha-config.yaml matches the correct syntax. Options A, B, and D use incorrect commands or missing flags.
  3. Final Answer:

    kubeadm init --config ha-config.yaml -> Option C
  4. Quick Check:

    kubeadm init + --config = correct syntax [OK]
Quick Trick: Use 'kubeadm init --config filename' to start HA cluster [OK]
Common Mistakes:
  • Using 'start' instead of 'init'
  • Omitting '--config' flag
  • Passing config file without flag

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes