Home » VMware » 5V0-23.20 » Which command provides valid syntax to deploy a vSphere Pod?
Which command provides valid syntax to deploy a vSphere Pod?
A. tkg apply -c containerName
B. docker run containerName
C. kubectl apply -f deployment.yaml
D. kubectl apply -t deployment.yaml
Answer: C
Explanation:
You can deploy an application on a namespace on a Supervisor Cluster. Once the application is deployed, the respective number of vSphere Pods are created on the Supervisor Cluster within the namespace.
Common kubectl commands include the apply, get, describe, and delete commands:
• The kubectl apply command applies the contents of a YAML file. Typically, this command is used to create a pod or deployment: — kubectl apply -f /path/to/my.yaml
• The kubectl get command returns basic information about an object: — kubectl get pod
<pod_name_name>