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:
24
24
# minReplicas: 1
25
25
# maxReplicas: 10
26
26
# targetCPUUtilizationPercentage: 50
27
+ PodDisruptionBudget :
28
+ create : false
29
+ maxUnavailable : " 50%"
27
30
28
31
# Effective if standaloneScheduler is true
29
32
webServer :
@@ -44,6 +47,9 @@ webServer:
44
47
# minReplicas: 1
45
48
# maxReplicas: 10
46
49
# targetCPUUtilizationPercentage: 50
50
+ PodDisruptionBudget :
51
+ create : false
52
+ maxUnavailable : 50%
47
53
48
54
# Enable Postgres as the DB
49
55
postgresql :
You can’t perform that action at this time.
0 commit comments