> For the complete documentation index, see [llms.txt](https://docs.cloudeka.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cloudeka.ai/reference/deployment-deepseek-r1-70b-with-vllm-on-deka-gpus-kubernetes/create-service.md).

# Create Service

Create a service to expose the LLaMA deployment.  If you are using a Linux operating system, then run the following syntax to create the service.yaml file.

```bash
nano service.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.

```yaml
apiVersion: v1
kind: Service
metadata:
  name: deepseek-r1
  namespace: vllm
spec:
  ports:
  - name: http-vllm
    port: 80
    protocol: TCP
    targetPort: 8000
  selector:
    app: deepseek-r1
  sessionAffinity: None
  type: LoadBalancer
```

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.

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

{% 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 %}
