feat(helm): add PodDisruptionBudget and run staging in two replicas
This commit is contained in:
parent
377e9e9570
commit
e66c493366
2 changed files with 15 additions and 0 deletions
13
charts/backoffice/templates/pdb.yaml
Normal file
13
charts/backoffice/templates/pdb.yaml
Normal 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 }}
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
replicaCount: 2
|
||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
enabled: true
|
enabled: true
|
||||||
host: staging.backoffice.mareshq.com
|
host: staging.backoffice.mareshq.com
|
||||||
|
|
|
||||||
Reference in a new issue