[OpenShift] What are deployment strategies?

Solution Verified - Updated -

Environment

  • OpenShift Container Platform
    • Versions: 3.9, 3.10 and 3.11

Resolution

When an upgrade of an application running on OpenShift Container Platform is performed, pods executing the older version need to be deleted and replaced with the ones who run the newer version. This task can be carried out by different ways which are called "deployment strategies".

There are two predefined strategies on OpenShift which can be used:

  • Rolling strategy: it does not delete any old pod until it is sure that the new one is ready.

  • Recreate strategy: same as the previous one, but it also supports lifecycle hooks.

Furthermore, custom strategies can be also defined.

For more information, please visit this link to OpenShift official documentation.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.