Deployment strategy to scale down the existing pods first and then scale up new pods

Solution Verified - Updated -

Issue

  • Recreate deployment strategy used to achieve above doesn't give satisfactory results and causes some downtime

  • In Rolling deployment strategy, setting maxsurge = 0 and maxUnavailable = 1 results in the deployment creating a new pod first and then scaling down the existing pod next. This is a problem in a stringent quota definition.

  • Is there any alternative deployment strategy available similar to rolling that helps in achieving following : first some % of old pods will be down and then same % of new pods will be scaled up?

Environment

  • Red Hat OpenShift Container Platform
    • v3.11

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content