
Explanation:
Option A is incorrect because the gcloud app deploy command is used for deploying applications to Google App Engine, not for deploying containerized applications to Kubernetes Engine. Option B is incorrect because the kubectl tool cannot use an image directly from Cloud Storage; the correct place to upload the docker image is Container Registry. Option C is incorrect because kubectl app deploy is not a valid command; the correct command would be kubectl apply -f. Option D is correct because it follows the proper steps for dockerizing and deploying the application on Kubernetes Engine: building a docker image from the Dockerfile, uploading it to Container Registry, creating a Deployment YAML file to point to the uploaded image, and then using the kubectl command to create the deployment using the YAML file.
Ultimate access to all questions.
As an intern at a tech company, your manager has tasked you with dockerizing their application and deploying it on Kubernetes Engine. What is the correct approach to accomplish this?
A
Use gcloud app deploy in your CLI.
B
kubectl command line utility to create the deployment with that file.C
Use kubectl app deploy in your CLI.
D
kubectl command line utility to create the deployment with that file.No comments yet.