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 <hello@hidde.co>
This commit is contained in:
parent
8e147bcdbb
commit
16c6a07504
|
@ -9,6 +9,8 @@ spec:
|
|||
matchLabels:
|
||||
app: source-controller
|
||||
replicas: 1
|
||||
strategy:
|
||||
type: Recreate
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
|
|
Loading…
Reference in New Issue