1. Google Cloud Documentation
"Deploying a containerized web application": This official tutorial outlines the exact steps described in the correct answer. It details building a container image
pushing it to Artifact Registry (Google's recommended container registry)
and then deploying it to a GKE cluster using a manifest file (deployment.yaml) and kubectl apply. (See steps 3
4
and 6 in the guide).
2. Google Cloud Documentation
"Container Registry overview": "Container Registry is a private container image registry that runs on Google Cloud... You can access Container Registry through HTTPS endpoints
from gcloud
or from Docker." This confirms that a registry
not object storage
is the correct location for images.
3. Google Cloud SDK Documentation
gcloud app deploy: The official documentation for this command states
"This command is used to deploy the source code and configuration of your application to the App Engine server." This explicitly links the command to App Engine
not GKE.
4. Kubernetes Documentation
"Deployments": "A Deployment provides declarative updates for Pods... You describe a desired state in a Deployment
and the Deployment Controller changes the actual state to the desired state at a controlled rate." This supports the use of a declarative YAML file as the standard practice.