Skip to content
Merged
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
19 changes: 19 additions & 0 deletions charts/azimuth-llm/templates/api/pod-disruption-budget.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{{- if .Values.api.pdb.enabled }}
---
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: {{ .Release.Name }}-api
labels:
{{- include "azimuth-llm.labels" . | nindent 4 }}
spec:
{{- with .Values.api.pdb.minAvailable }}
minAvailable: {{ . }}
{{- end }}
{{- with .Values.api.pdb.maxUnavailable }}
maxUnavailable: {{ . }}
{{- end }}
selector:
matchLabels:
{{- include "azimuth-llm.api-selectorLabels" . | nindent 6 }}
{{- end }}
19 changes: 19 additions & 0 deletions charts/azimuth-llm/templates/ui/pod-disruption-budget.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{{- if .Values.ui.pdb.enabled }}
---
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: {{ .Release.Name }}-ui
labels:
{{- include "azimuth-llm.labels" . | nindent 4 }}
spec:
{{- with .Values.ui.pdb.minAvailable }}
minAvailable: {{ . }}
{{- end }}
{{- with .Values.ui.pdb.maxUnavailable }}
maxUnavailable: {{ . }}
{{- end }}
selector:
matchLabels:
{{- include "azimuth-llm.ui-selectorLabels" . | nindent 6 }}
{{- end }}
12 changes: 12 additions & 0 deletions charts/azimuth-llm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,12 @@ api:
tolerations: []
# Pod affinities
affinity: {}
# Pod disruption budget config
pdb:
enabled: false
# Only one of these should be set
# minAvailable:
# maxUnavailable:

# Configuration for the frontend web interface
ui:
Expand Down Expand Up @@ -167,3 +173,9 @@ ui:
tolerations: []
# Pod affinities
affinity: {}
# Pod disruption budget config
pdb:
enabled: false
# Only one of these should be set
# minAvailable:
# maxUnavailable: