Exam 5v0-2320 All QuestionsBrowse all questions from this exam
Question 113

Which kubectl command is used to deploy the application when using a Kubernetes deployment specification file, my-app.yaml?

    Correct Answer: B

    The correct command to deploy an application using a Kubernetes deployment specification file is "kubectl apply -f my-app.yaml". The "apply" command is used to update a Kubernetes cluster to match the state defined in a configuration file. The "-f" flag specifies the filename of the YAML file that contains the deployment specifications.

Discussion
obeythefistOption: B

It's B. Always look for the -F parameter with these questions (the filename parameter). VMware seem to omit this in the "wrong" answers.

diegof1Option: B

B is correct https://docs.vmware.com/en/VMware-Tanzu-Kubernetes-Grid/2.5/using-tkg/workload-clusters-sample-app.html