feat(helm chart): add poddisruptionbudget

This commit is contained in:
James Reeve 2024-01-05 15:26:35 -05:00
parent b1c7b931a9
commit 1ca17544d8
No known key found for this signature in database
2 changed files with 19 additions and 0 deletions

View file

@ -0,0 +1,16 @@
{{- if .Values.pdb.enabled }}
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: {{ include "cert-manager-ibm-cis-webhook.fullname" . }}
labels:
app.kubernetes.io/name: {{ include "cert-manager-ibm-cis-webhook.name" . }}
chart: {{ include "cert-manager-ibm-cis-webhook.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
maxUnavailable: 10%
selector:
matchLabels:
release: {{ .Release.Name }}
{{- end }}

View file

@ -34,6 +34,9 @@ service:
type: ClusterIP
port: 443
pdb:
enabled: true
resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little