mirror of
https://github.com/cert-manager/webhook-example.git
synced 2025-07-01 22:35:49 +02:00
feat(helm chart): add poddisruptionbudget
This commit is contained in:
parent
b1c7b931a9
commit
1ca17544d8
2 changed files with 19 additions and 0 deletions
16
deploy/cert-manager-ibm-cis-webhook/templates/pdb.yaml
Normal file
16
deploy/cert-manager-ibm-cis-webhook/templates/pdb.yaml
Normal 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 }}
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue