Skip to content
This repository was archived by the owner on Nov 19, 2026. It is now read-only.

Add support for deployment strategy #128

Open

Description

@surajssd

In kompose development we discovered some issues with deployment strategy, like if a pod had volumeMounts and it had deployment strategy as RollingUpdate it would cause issues there.

So I propose we do similar things here in OpenCompose, if a pod has volumeMounts we change the deployment strategy to Recreate.

We can do something similar that is done in kompose.

Deployment Strategy:

$ oc explain deployment.spec.strategy
RESOURCE: strategy <Object>

DESCRIPTION:
     The deployment strategy to use to replace existing pods with new ones.

    DeploymentStrategy describes how to replace existing pods with new ones.

FIELDS:
   rollingUpdate        <Object>
     Rolling update config params. Present only if DeploymentStrategyType =
     RollingUpdate.

   type <string>
     Type of deployment. Can be "Recreate" or "RollingUpdate". Default is
     RollingUpdate.

Activity

  1. changed the title [-]Add intelligence in deployment strategy[/-] [+]Add support for deployment strategy[/+] on May 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions