fix(crowdsec): use Recreate strategy for lapi to avoid RWO volume multi-attach
RollingUpdate with maxSurge>0 creates a new pod before terminating the old one, causing a Multi-Attach error on the RWO PVCs (crowdsec-db-pvc, crowdsec-config-pvc). Recreate terminates the old pod first, then starts the new one.
This commit is contained in:
@@ -24,10 +24,7 @@ crowdsec: &crowdsec_config
|
||||
value: Europe/Paris
|
||||
lapi:
|
||||
strategy:
|
||||
type: RollingUpdate
|
||||
rollingUpdate:
|
||||
maxUnavailable: 0
|
||||
maxSurge: 1
|
||||
type: Recreate
|
||||
env:
|
||||
- name: TZ
|
||||
value: Europe/Paris
|
||||
@@ -95,4 +92,4 @@ tool:
|
||||
repo: https://crowdsecurity.github.io/helm-charts
|
||||
chart: crowdsec
|
||||
version: 0.20.1
|
||||
values: *crowdsec_config
|
||||
values: *crowdsec_config
|
||||
|
||||
Reference in New Issue
Block a user