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:
Hidde Beydals 2021-02-02 11:40:52 +01:00
parent 8e147bcdbb
commit 16c6a07504
1 changed files with 2 additions and 0 deletions

View File

@ -9,6 +9,8 @@ spec:
matchLabels:
app: source-controller
replicas: 1
strategy:
type: Recreate
template:
metadata:
labels: