VMware Digital Workspace Fundamentals — Question 1
What is the valid way to deploy a Pod in a Kubernetes cluster?
Answer options
- A. Copy a manifest file to the API server in the /etc/kubernetes/pods directory
- B. SSH to the worker node where the Pod is desired to run and issue the command “kubectl apply -f myPod.yaml”
- C. Copy a manifest file to a worker node in the /etc/kubernetes/pods directory
- D. Issue the command “kubectl apply -f myPod.yaml”
Correct answer: B
Explanation
The correct answer is B because you need to run the command from a worker node to apply the Pod definition. Option A and C are incorrect as manually copying files to the API server or worker nodes does not properly deploy a Pod. Option D is also incorrect because it does not specify the need to be on a worker node, even though the command itself is valid.