GCP ACE · Question 23 · Domain 3.2: Deploying and implementing GKE resources
You have a running GKE cluster and you have authenticated your local kubectl tool to it. You want to deploy a containerized application using an image named 'gcr.io/my-project/my-app:v1' and ensure 3 replicas are running.
Which command is the simplest way to achieve this imperatively?
Answer options:
kubectl run my-app --image=gcr.io/my-project/my-app:v1 --replicas=3
gcloud container deploy my-app --image=gcr.io/my-project/my-app:v1
kubectl create deployment my-app --image=gcr.io/my-project/my-app:v1 --replicas=3
kubectl apply -f gcr.io/my-project/my-app:v1
50 questions · hints · full answers · grading