diff --git a/charts/azimuth-llm/templates/api/pod-disruption-budget.yml b/charts/azimuth-llm/templates/api/pod-disruption-budget.yml new file mode 100644 index 0000000..d9795aa --- /dev/null +++ b/charts/azimuth-llm/templates/api/pod-disruption-budget.yml @@ -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 }} diff --git a/charts/azimuth-llm/templates/ui/pod-disruption-budget.yml b/charts/azimuth-llm/templates/ui/pod-disruption-budget.yml new file mode 100644 index 0000000..48b0d7b --- /dev/null +++ b/charts/azimuth-llm/templates/ui/pod-disruption-budget.yml @@ -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 }} diff --git a/charts/azimuth-llm/values.yaml b/charts/azimuth-llm/values.yaml index 3951a92..bad7b84 100644 --- a/charts/azimuth-llm/values.yaml +++ b/charts/azimuth-llm/values.yaml @@ -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: @@ -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: