Skip to content

Add support for deployment strategy #128

@surajssd

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions