Skip to content

Commit 31b55ff

Browse files
authored
use stringData in secret yaml to store huggingface token (#25685)
Signed-off-by: yiting.jiang <[email protected]>
1 parent ded8ada commit 31b55ff

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

docs/deployment/k8s.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,14 @@ First, create a Kubernetes PVC and Secret for downloading and storing Hugging Fa
4949
metadata:
5050
name: hf-token-secret
5151
type: Opaque
52-
data:
53-
token: $(HF_TOKEN)
52+
stringData:
53+
token: "REPLACE_WITH_TOKEN"
5454
EOF
5555
```
5656

57+
Here, the `token` field stores your **Hugging Face access token**. For details on how to generate a token,
58+
see the [Hugging Face documentation](https://huggingface.co/docs/hub/en/security-tokens).
59+
5760
Next, start the vLLM server as a Kubernetes Deployment and Service:
5861

5962
??? console "Config"

0 commit comments

Comments
 (0)