Skip to content

Commit 16c6a07

Browse files
committed
Use Recreate strategy for controller deployment
- Prevents a deadlock in active-passive HA setups with multiple replicas and during upgrades that previously occurred. As the leader election would be held hostage by the previous replica set due to the rolling update strategy. - Ensures backing persistent (RW) volumes can safely be used, as they can not be shared and will not become available to the next pod without recreating all. Signed-off-by: Hidde Beydals <[email protected]>
1 parent 8e147bc commit 16c6a07

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

config/manager/deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ spec:
99
matchLabels:
1010
app: source-controller
1111
replicas: 1
12+
strategy:
13+
type: Recreate
1214
template:
1315
metadata:
1416
labels:

0 commit comments

Comments
 (0)