distribution: Change clouddot template to allow for unavailable pods

Because the state directory, which is still currently used, only allows
for a single pod to mount it, allow for 0 available pods when updating
the deployment. Otherwise it will block updating until the state
directory is available for mounting, which will be never.
This commit is contained in:
sanne 2021-07-14 19:03:28 +02:00 committed by Sanne Raymaekers
parent d0b5aaae95
commit c53283f5e9

View file

@ -24,10 +24,10 @@ objects:
# Update pods 1 at a time
type: RollingUpdate
rollingUpdate:
# Create at most 1 extra pod over .spec.replicas
maxSurge: 1
# At all times there should be .spec.replicas available
maxUnavailable: 0
# Create at most 0 extra pod over .spec.replicas
maxSurge: 0
# At all times there should be .spec.replicas - 1 available
maxUnavailable: 1
template:
metadata:
labels: