fix(deploy): check if replicas > 1 to create PDB
This commit is contained in:
parent
002f6ce4c4
commit
e0505665ca
1 changed files with 2 additions and 0 deletions
|
|
@ -1,3 +1,4 @@
|
||||||
|
{{- if gt (.Values.replicas | int) 1 -}}
|
||||||
apiVersion: policy/v1
|
apiVersion: policy/v1
|
||||||
kind: PodDisruptionBudget
|
kind: PodDisruptionBudget
|
||||||
metadata:
|
metadata:
|
||||||
|
|
@ -9,3 +10,4 @@ spec:
|
||||||
app.kubernetes.io/name: {{ .Chart.Name }}
|
app.kubernetes.io/name: {{ .Chart.Name }}
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
app.kubernetes.io/component: "backend-api"
|
app.kubernetes.io/component: "backend-api"
|
||||||
|
{{- end -}}
|
||||||
|
|
|
||||||
Reference in a new issue