> 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/guideline-for-enterprise/panduan-untuk-enterprise/deka-gpu/deka-gpu-kubernetes/workloads/pods/how-to-create-a-new-pod-use-cli.md).

# Cara Membuat Pod Baru melalui CLI

{% hint style="success" %}
Untuk informasi selengkapnya, unduh *kubeconfig* yang telah dikonfigurasi melalui *Deka GPU*. Klik [tautan ini](/guideline-for-enterprise/panduan-untuk-enterprise/deka-gpu/deka-gpu-kubernetes/dashboard/download-kube-config.md).
{% endhint %}

{% hint style="success" %}
Untuk menyiapkan *kubeconfig*, gunakan `kubectl` yang sesuai dengan sistem operasi komputer Anda. Jika menggunakan [*Windows*](https://docs.cloudeka.ai/miscellaneous/reference/how-to-use-kubeconfig-on-windows), klik tautan tersebut. Jika menggunakan *Linux*, klik [tautan ini](https://docs.cloudeka.ai/miscellaneous/reference/how-to-use-kubeconfig-on-linux).
{% endhint %}

Untuk membuat *Pod* melalui *CLI*, jalankan sintaks berikut.

```bash
nano pod.yaml
```

Berkas `pod.yaml` akan terbuka secara otomatis dan memuat baris kode berikut. Anda dapat menyesuaikan `name` dan `namespace`.

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

Untuk menerapkan konfigurasi dari `pod.yaml`, jalankan sintaks berikut.

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