Skip to content

Commit 7396e7b

Browse files
authored
Merge pull request #88 from stackhpc/feat/pdb
Add optional pod disruption budget config
2 parents ae7e206 + cd874aa commit 7396e7b

File tree

3 files changed

+50
-0
lines changed

3 files changed

+50
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{{- if .Values.api.pdb.enabled }}
2+
---
3+
apiVersion: policy/v1
4+
kind: PodDisruptionBudget
5+
metadata:
6+
name: {{ .Release.Name }}-api
7+
labels:
8+
{{- include "azimuth-llm.labels" . | nindent 4 }}
9+
spec:
10+
{{- with .Values.api.pdb.minAvailable }}
11+
minAvailable: {{ . }}
12+
{{- end }}
13+
{{- with .Values.api.pdb.maxUnavailable }}
14+
maxUnavailable: {{ . }}
15+
{{- end }}
16+
selector:
17+
matchLabels:
18+
{{- include "azimuth-llm.api-selectorLabels" . | nindent 6 }}
19+
{{- end }}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{{- if .Values.ui.pdb.enabled }}
2+
---
3+
apiVersion: policy/v1
4+
kind: PodDisruptionBudget
5+
metadata:
6+
name: {{ .Release.Name }}-ui
7+
labels:
8+
{{- include "azimuth-llm.labels" . | nindent 4 }}
9+
spec:
10+
{{- with .Values.ui.pdb.minAvailable }}
11+
minAvailable: {{ . }}
12+
{{- end }}
13+
{{- with .Values.ui.pdb.maxUnavailable }}
14+
maxUnavailable: {{ . }}
15+
{{- end }}
16+
selector:
17+
matchLabels:
18+
{{- include "azimuth-llm.ui-selectorLabels" . | nindent 6 }}
19+
{{- end }}

charts/azimuth-llm/values.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,12 @@ api:
102102
tolerations: []
103103
# Pod affinities
104104
affinity: {}
105+
# Pod disruption budget config
106+
pdb:
107+
enabled: false
108+
# Only one of these should be set
109+
# minAvailable:
110+
# maxUnavailable:
105111

106112
# Configuration for the frontend web interface
107113
ui:
@@ -167,3 +173,9 @@ ui:
167173
tolerations: []
168174
# Pod affinities
169175
affinity: {}
176+
# Pod disruption budget config
177+
pdb:
178+
enabled: false
179+
# Only one of these should be set
180+
# minAvailable:
181+
# maxUnavailable:

0 commit comments

Comments
 (0)