feat: add helm chart for deploying the app on k8s
This commit is contained in:
parent
aaa1eff0fe
commit
cbaa5272ef
13 changed files with 261 additions and 0 deletions
13
deploy/k8s/templates/poddisruptionbudget.yaml
Normal file
13
deploy/k8s/templates/poddisruptionbudget.yaml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{{- if gt (.Values.replicas | int) 1 -}}
|
||||
apiVersion: policy/v1
|
||||
kind: PodDisruptionBudget
|
||||
metadata:
|
||||
name: {{ .Release.Name }}
|
||||
spec:
|
||||
minAvailable: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: {{ .Chart.Name }}
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
app.kubernetes.io/component: "backend-api"
|
||||
{{- end -}}
|
||||
Reference in a new issue