Extend K8S and RIC installation instructions
[it/dep.git] / ric-infra / 30-Kong / helm / kong / charts / kong / templates / pdb.yaml
1 {{- if .Values.podDisruptionBudget.enabled }}
2 apiVersion: policy/v1beta1
3 kind: PodDisruptionBudget
4 metadata:
5   name: "{{ template "kong.fullname" . }}"
6   labels:
7     app: "{{ template "kong.name" . }}"
8 spec:
9   {{- if .Values.podDisruptionBudget.minAvailable }}
10   minAvailable: {{ .Values.podDisruptionBudget.minAvailable }}
11   {{- end  }}
12   {{- if .Values.podDisruptionBudget.maxUnavailable }}
13   maxUnavailable: {{ .Values.podDisruptionBudget.maxUnavailable }}
14   {{- end  }}
15   selector:
16     matchLabels:
17       app: {{ template "kong.name" . }}
18       release: {{ .Release.Name }}
19       component: app
20 {{- end }}