> 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/guidance-for-individual/deka-gpu/deka-gpu-kubernetes/workloads/pods/how-to-create-a-new-pod-using-cli.md).

# How to Create a New Pod using CLI

{% hint style="success" %}
For more information, you need to download the preconfig cube through the Deka GPU Service Portal, click [this link](/guidance-for-individual/deka-gpu/deka-gpu-kubernetes/dashboard/download-kube-config.md).
{% endhint %}

{% hint style="success" %}
To set up the kubeconfig, you need `kubectl` that matches your computer's operating system. If you are using [Windows](https://docs.cloudeka.ai/miscellaneous/reference/how-to-use-kubeconfig-on-windows), click this link, and if you are using Linux, click [this link](https://docs.cloudeka.ai/miscellaneous/reference/how-to-use-kubeconfig-on-linux).
{% endhint %}

To create a Pod through the CLI by running the following syntax.

```bash
nano pod.yaml
```

The pod.yaml file page appears automatically and includes the following lines of code. You can customize the **name** and **namespaces**.

```yaml
apiVersion: v1
kind: Pod
metadata:
  name: pod-bmb4e
  namespace: default
spec:
  containers:
    - name: nginx
      image: nginx
      ports:
        - containerPort: 80
```

To apply the configuration to pod.yaml , you need to run the following syntax.

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