deployment

The deployment key contains configuration about how the Deployment will be made in Kubernetes.

📘

Please refer to the Deployment Strategy page for more information.

deployment

deployment:
  strategy:
    type: hash
    required: true
    description: Defines the type of Deployment and additional options (if any).

deployment.strategy

deployment:
  strategy:
    type:
      type: string
      required: true
      description: Defines the strategy used for the deployment.
    maxUnavailable:
      type: integer (or percent)
      required: only if the deployment.type is "RollingUpdate"
      description: Defines the maximum number of Pods which can be unavailable at any time during the deployment.
    maxSurge:
      type: integer (or percent)
      required: only if the deployment.type is "RollingUpdate"
      description: Defines the maximum number of Pods which can be created on top of the desisred number of Pods at any time during the deployment.

 

Examples

deployment:
  strategy:
    type: RollingUpdate
    maxUnavailable: 2 # optional, default value is 25%
    maxSurge: 50% # optional, default value is 25%
deployment:
  strategy:
    type: Recreate