File tree Expand file tree Collapse file tree 3 files changed +46
-0
lines changed Expand file tree Collapse file tree 3 files changed +46
-0
lines changed Original file line number Diff line number Diff line change 1+ {{- if .Values.scheduler.PodDisruptionBudget.create }}
2+ ---
3+ apiVersion : policy/v1
4+ kind : PodDisruptionBudget
5+ metadata :
6+ name : {{ include "mageai.fullname" . }}
7+ labels :
8+ {{- include "mageai.labels" . | nindent 4 }}
9+ spec :
10+ {{- if .Values.scheduler.PodDisruptionBudget.minAvailable }}
11+ minAvailable : {{ .Values.scheduler.PodDisruptionBudget.minAvailable }}
12+ {{- end }}
13+ {{- if or .Values.scheduler.PodDisruptionBudget.maxUnavailable ( not .Values.scheduler.PodDisruptionBudget.minAvailable ) }}
14+ maxUnavailable : {{ .Values.scheduler.PodDisruptionBudget.maxUnavailable | default 1 }}
15+ {{- end }}
16+ selector :
17+ matchLabels :
18+ {{- include "mageai.schedulerSelectorLabels" . | nindent 6 }}
19+ ...
20+ {{- end }}
Original file line number Diff line number Diff line change 1+ {{- if .Values.webServer.PodDisruptionBudget.create }}
2+ ---
3+ apiVersion : policy/v1
4+ kind : PodDisruptionBudget
5+ metadata :
6+ name : {{ include "mageai.fullname" . }}
7+ labels :
8+ {{- include "mageai.labels" . | nindent 4 }}
9+ spec :
10+ {{- if .Values.webServer.PodDisruptionBudget.minAvailable }}
11+ minAvailable : {{ .Values.webServer.PodDisruptionBudget.minAvailable }}
12+ {{- end }}
13+ {{- if or .Values.webServer.PodDisruptionBudget.maxUnavailable ( not .Values.webServer.PodDisruptionBudget.minAvailable ) }}
14+ maxUnavailable : {{ .Values.webServer.PodDisruptionBudget.maxUnavailable | default 1 }}
15+ {{- end }}
16+ selector :
17+ matchLabels :
18+ {{- include "mageai.selectorLabels" . | nindent 6 }}
19+ ...
20+ {{- end }}
Original file line number Diff line number Diff line change @@ -24,6 +24,9 @@ scheduler:
2424 # minReplicas: 1
2525 # maxReplicas: 10
2626 # targetCPUUtilizationPercentage: 50
27+ PodDisruptionBudget :
28+ create : false
29+ maxUnavailable : " 50%"
2730
2831# Effective if standaloneScheduler is true
2932webServer :
@@ -44,6 +47,9 @@ webServer:
4447 # minReplicas: 1
4548 # maxReplicas: 10
4649 # targetCPUUtilizationPercentage: 50
50+ PodDisruptionBudget :
51+ create : false
52+ maxUnavailable : 50%
4753
4854# Enable Postgres as the DB
4955postgresql :
You can’t perform that action at this time.
0 commit comments