use stringData in secret yaml to store huggingface token (#25685)

Signed-off-by: yiting.jiang <yiting.jiang@daocloud.io>
This commit is contained in:
yitingdc
2025-10-30 15:47:36 +08:00
committed by GitHub
parent ded8ada86a
commit 31b55ffc62

View File

@ -49,11 +49,14 @@ First, create a Kubernetes PVC and Secret for downloading and storing Hugging Fa
metadata: metadata:
name: hf-token-secret name: hf-token-secret
type: Opaque type: Opaque
data: stringData:
token: $(HF_TOKEN) token: "REPLACE_WITH_TOKEN"
EOF EOF
``` ```
Here, the `token` field stores your **Hugging Face access token**. For details on how to generate a token,
see the [Hugging Face documentation](https://huggingface.co/docs/hub/en/security-tokens).
Next, start the vLLM server as a Kubernetes Deployment and Service: Next, start the vLLM server as a Kubernetes Deployment and Service:
??? console "Config" ??? console "Config"