# Create Secret for Hugging Face Token

Create a secret to store the Hugging Face token.  If you are using a Linux operating system, then run the following syntax to create the pvc.yaml file.

```bash
nano secret.yaml
```

If you are using a Windows operating system, open a text editor such as Notepad or Notepad++.

<figure><img src="/files/BsjbwkBGhwTv6O7RQ0QD" alt="" width="375"><figcaption><p>Text Editor</p></figcaption></figure>

Enter the following syntax.

{% hint style="danger" %}
Replace `your-hugging-face-token-base64`with the base64-encoded version of your actual Hugging Face token. Click this link for further explanation.
{% endhint %}

```yaml
apiVersion: v1
kind: Secret
metadata:
  name: hf-token-secret
  namespace: vllm
type: Opaque
data:
  token: your-hugging-face-token-base64
```

If you are using a **Linux** operating system, run the following syntax but If you are using a **Windows** operating system, after save the file as secret.yaml,  in CMD navigate to the folder that contains the secret.yaml file and run the following syntax.&#x20;

```bash
kubectl apply -f secret.yaml
```

<figure><img src="/files/ixVPVuTaHMrlpfndHc8I" alt=""><figcaption><p>success create</p></figcaption></figure>

{% hint style="warning" %}
To delete the secret.yaml configuration that has been applied, run the following syntax.&#x20;

```bash
kubectl delete -f secret.yaml -n [namespace]
```

**Replace \[namespace] with the namespace you created in the sub-chapter** [**Create Namespace**](/reference/deployment-llama-3.1-70b-with-vllm-on-kubernetes/create-namespace.md)**.**
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cloudeka.ai/reference/deployment-llama-3.1-70b-with-vllm-on-kubernetes/create-secret-for-hugging-face-token.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
