# How to Create a New Deployment use CLI

{% hint style="success" %}
For more information, you need to download the preconfig cube through the Deka GPU Service Portal, click [this link](https://docs.cloudeka.ai/deka-gpu/deka-gpu-kubernetes/dashboard/download-kube-config).
{% 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 Deployment through the CLI by running the following syntax.

```bash
nano deployment.yaml
```

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

```yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: deployment-1xfox
  namespace: default
  labels:
    app: nginx
spec:
  replicas: 1
  selector:
    matchLabels:
      app: nginx
  template:
    metadata:
      labels:
        app: nginx
    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 deployment.yaml
```
