VMware Carbon Black Cloud Enterprise EDR (2020) — Question 103
Which command would be used to deploy a Tanzu Kubernetes cluster?
Answer options
- A. kubectl create cluster -f CLUSTER-NAME.yaml
- B. kubectl apply cluster CLUSTER-NAME.yaml
- C. kubectl apply -f CLUSTER-NAME.yaml
- D. kubectl create -f CLUSTER-NAME.yaml
Correct answer: C
Explanation
The correct command is 'kubectl apply -f CLUSTER-NAME.yaml' because it allows for the creation of resources defined in the specified YAML file. The other options are incorrect due to syntax errors or incorrect command usage that would not successfully deploy a Tanzu Kubernetes cluster.