Support specifying deployment strategy

This commit is contained in:
Ask Bjørn Hansen
2020-06-05 01:37:00 -07:00
parent 18a7e0edb0
commit 194cda4c52
2 changed files with 16 additions and 1 deletions

View File

@ -114,6 +114,18 @@ resources:
memory: 64Mi
cpu: 50m
## Update strategy - for deployments with RWO PVs attached and with a
## single replicas = 1, an update can get stuck, as the previous pod
## remains attached to the PVC. Changing the strategy to "Recreate"
## will terminate the single previous pod, so that the new, incoming
## pod can attach to the PV
# deploymentStrategy:
# rollingUpdate:
# type: "Recreate"
# type: "RollingUpdate"
# maxSurge: 1
# maxUnavailable: 1
## Enable persistence using Persistent Volume Claims
## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/
## ref: