From c53283f5e972730f2b3631ba8f782fbb03348ae9 Mon Sep 17 00:00:00 2001 From: sanne Date: Wed, 14 Jul 2021 19:03:28 +0200 Subject: [PATCH] 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. --- distribution/osbuild-composer-clouddot-template.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/distribution/osbuild-composer-clouddot-template.yml b/distribution/osbuild-composer-clouddot-template.yml index 201a7299f..7baf394bc 100644 --- a/distribution/osbuild-composer-clouddot-template.yml +++ b/distribution/osbuild-composer-clouddot-template.yml @@ -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: