"vllm/vscode:/vscode.git/clone" did not exist on "059779231f158b8b570e71aaa5c66f49b41b2fb1"
Unverified Commit 31b55ffc authored by yitingdc's avatar yitingdc Committed by GitHub
Browse files

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


Signed-off-by: default avataryiting.jiang <yiting.jiang@daocloud.io>
parent ded8ada8
...@@ -49,11 +49,14 @@ First, create a Kubernetes PVC and Secret for downloading and storing Hugging Fa ...@@ -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"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment