We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 474f7b4 commit 09e01a2Copy full SHA for 09e01a2
charts/azimuth-llm/templates/api/deployment.yml
@@ -19,9 +19,13 @@ spec:
19
spec:
20
containers:
21
- name: {{ .Release.Name }}-api
22
- {{ $gpuChart := ternary "ghcr.io/stackhpc/vllm-xpu" "vllm/vllm-openai" .Values.api.intelXPUsEnabled -}}
23
- {{ $imageRepo := .Values.api.image.repository | default (ternary "ghcr.io/stackhpc/vllm-cpu" $gpuChart (eq (.Values.api.gpus | int) 0)) -}}
24
- image: {{ printf "%s:%s" $imageRepo .Values.api.image.version }}
+ {{- if eq (.Values.api.gpus | int) 0 }}
+ image: "ghcr.io/stackhpc/vllm-cpu"
+ {{- else if .Values.api.intelXPUsEnabled }}
25
+ image: "ghcr.io/stackhpc/vllm-xpu"
26
+ {{- else }}
27
+ image: "vllm/vllm-openai"
28
+ {{- end }}
29
ports:
30
- name: api
31
containerPort: 8000
0 commit comments