Skip to content

Commit fb85de2

Browse files
samzongszedan-rh
authored andcommitted
✨ feat(helm): add support for extra initContainer env variables. (vllm-project#679)
Signed-off-by: samzong <[email protected]>
1 parent 6e0ec42 commit fb85de2

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

deploy/helm/semantic-router/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ spec:
7070
env:
7171
- name: HF_HUB_CACHE
7272
value: /tmp/hf_cache
73+
{{- with .Values.initContainer.env }}
74+
{{- toYaml . | nindent 10 }}
75+
{{- end }}
7376
resources:
7477
{{- toYaml .Values.initContainer.resources | nindent 10 }}
7578
volumeMounts:

deploy/helm/semantic-router/values.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,18 @@ initContainer:
135135
requests:
136136
memory: "1Gi"
137137
cpu: "500m"
138+
# -- Additional environment variables for the init container.
139+
# For example, to use a private Hugging Face model, you can pass a token
140+
# and specify an endpoint using a pre-existing Kubernetes secret.
141+
# env:
142+
# - name: HF_TOKEN
143+
# valueFrom:
144+
# secretKeyRef:
145+
# name: my-hf-secret
146+
# key: token
147+
# - name: HF_ENDPOINT
148+
# value: "https://huggingface.co"
149+
env: []
138150
# -- Models to download
139151
models:
140152
- name: all-MiniLM-L12-v2

0 commit comments

Comments
 (0)