We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b5d189e + 00d4865 commit 294ac78Copy full SHA for 294ac78
chart/templates/api/deployment.yml
@@ -35,15 +35,14 @@ spec:
35
{{- if .Values.huggingface.secretName }}
36
envFrom:
37
- secretRef:
38
- name: huggingface-token
39
- {{- else if .Values.huggingface.token }}
+ name: {{ .Values.huggingface.secretName }}
+ {{- end }}
40
env:
41
- name: DO_NOT_TRACK
42
- value: 1
+ value: "1"
43
+ {{- if .Values.huggingface.token }}
44
- name: HUGGING_FACE_HUB_TOKEN
45
value: {{ quote .Values.huggingface.token }}
- {{- else if contains "Llama" .Values.huggingface.model -}}
46
- {{- fail "Either secretName or token value must be set for Llama and other gated models" }}
47
{{- end }}
48
readinessProbe:
49
httpGet:
@@ -60,4 +59,4 @@ spec:
60
59
- name: shm
61
emptyDir:
62
medium: Memory
63
- sizeLimit: 1Gi
+ sizeLimit: 1Gi
0 commit comments