QuestionQ100

VerifiedDeploying applications

You have an application managed by a managed instance group. When you deploy a new application version, costs must be minimized and the instance count must not increase. You need to ensure that, whenever a new instance is created, deployment proceeds only if that new instance is healthy.

What should you do?

Explanation

A rolling update with maxSurge set to 0 prevents the managed instance group from creating instances above its target size, avoiding the added cost of surge capacity. Setting maxUnavailable to 1 restricts the update to one unavailable replacement at a time. With health checking enabled, a replacement is not considered available until it reports healthy, so further rollout is held until that instance becomes healthy.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!