Which kubectl command is used to deploy the application when using a Kubernetes deployment specification file, my-app.yaml?
Which kubectl command is used to deploy the application when using a Kubernetes deployment specification file, my-app.yaml?
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.
It's B. Always look for the -F parameter with these questions (the filename parameter). VMware seem to omit this in the "wrong" answers.
B is correct https://docs.vmware.com/en/VMware-Tanzu-Kubernetes-Grid/2.5/using-tkg/workload-clusters-sample-app.html