mirror of
https://github.com/openappsec/openappsec.git
synced 2025-07-15 23:14:44 +03:00
21 lines
657 B
YAML
21 lines
657 B
YAML
{{- if .Values.podDisruptionBudget.enabled }}
|
|
apiVersion: policy/v1
|
|
kind: PodDisruptionBudget
|
|
metadata:
|
|
name: {{ template "kong.fullname" . }}
|
|
namespace: {{ template "kong.namespace" . }}
|
|
labels:
|
|
{{- include "kong.metaLabels" . | nindent 4 }}
|
|
spec:
|
|
{{- if .Values.podDisruptionBudget.minAvailable }}
|
|
minAvailable: {{ .Values.podDisruptionBudget.minAvailable }}
|
|
{{- end }}
|
|
{{- if .Values.podDisruptionBudget.maxUnavailable }}
|
|
maxUnavailable: {{ .Values.podDisruptionBudget.maxUnavailable }}
|
|
{{- end }}
|
|
selector:
|
|
matchLabels:
|
|
{{- include "kong.metaLabels" . | nindent 6 }}
|
|
app.kubernetes.io/component: app
|
|
{{- end }}
|