1
0
Fork 0

feat(helm): add PodDisruptionBudget and run staging in two replicas

This commit is contained in:
Vojtěch Mareš 2023-09-03 10:52:39 +02:00
parent 377e9e9570
commit e66c493366
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D
2 changed files with 15 additions and 0 deletions

View file

@ -0,0 +1,13 @@
{{- if gt .Values.replicaCount 1 }}
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: {{ .Release.Name }}
spec:
minAvailable: {{ .Values.pdb.minAvailable }}
selector:
matchLabels:
app.kubernetes.io/name: {{ .Chart.Name }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: backend
{{- end }}

View file

@ -1,3 +1,5 @@
replicaCount: 2
ingress: ingress:
enabled: true enabled: true
host: staging.backoffice.mareshq.com host: staging.backoffice.mareshq.com