Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions deploy/cert-manager-sync/templates/poddisruptionbudget.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{{- if .Values.podDisruptionBudget.enabled }}
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: {{ include "cert-manager-sync.fullname" . }}
labels:
{{- include "cert-manager-sync.labels" . | nindent 4 }}
spec:
{{- if .Values.podDisruptionBudget.minAvailable }}
minAvailable: {{ .Values.podDisruptionBudget.minAvailable }}
{{- end }}
{{- if .Values.podDisruptionBudget.maxUnavailable }}
maxUnavailable: {{ .Values.podDisruptionBudget.maxUnavailable }}
{{- end }}
selector:
matchLabels:
{{- include "cert-manager-sync.selectorLabels" . | nindent 6 }}
{{- end }}
9 changes: 9 additions & 0 deletions deploy/cert-manager-sync/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,15 @@ autoscaling:
targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80

# Pod Disruption Budget configuration
podDisruptionBudget:
# -- Enable PodDisruptionBudget
enabled: false
# -- Minimum number of pods that must be available
minAvailable: 1
# -- Maximum number of pods that can be unavailable (alternative to minAvailable)
maxUnavailable: ""

nodeSelector: {}

tolerations: []
Expand Down