Question 20 of 84 from exam PCD: Professional Cloud Developer

Question 20 of 84 from exam PCD: Professional Cloud Developer

Question

Your application is deployed in a Google Kubernetes Engine (GKE) cluster.

When a new version of your application is released, your CI/CD tool updates the spec.template.spec.containers[0].image value to reference the Docker image of your new application version.

When the Deployment object applies the change, you want to deploy at least 1 replica of the new version and maintain the previous replicas until the new replica is healthy.

Which change should you make to the GKE Deployment object shown below?

apiVersion: apps/v1
kind: Deployment
metadata:
name: ecommerce-frontend-deployment
spec:
replicas: 3
selector:
matchLabels:
app: ecommerce-frontend
template:
metadata:

labels:
app: ecommerce-frontend

spec:

containers:

- name: ecommerce-frontend-webapp
image: ecommerce-frontend-webapp:1.7.9
ports:

- containerPort: 80

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

D.