> 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/reference/how-to-use-kubeconfig-on-windows.md).

# How to use kubeconfig on Windows

Setelah berhasil mengunduh *kubeconfig* di *Deka GPU Service Portal*, ikuti panduan berikut untuk menggunakan *kubeconfig* pada sistem operasi *Windows*.

## Konfigurasi kubectl

Langkah pertama untuk menggunakan *kubectl* adalah mengunduh berkas *kubectl*. Anda dapat menggunakan dua metode berikut:

1. Unduh langsung [*kubectl.exe*](https://dl.k8s.io/v1.28.15/bin/windows/amd64/kubectl.exe). Pastikan Anda memilih versi yang sesuai dengan arsitektur perangkat. Simpan berkas *kubectl.exe* pada perangkat Anda. Setelah unduhan selesai, pindahkan *kubectl.exe* ke folder yang diinginkan. Pada *Windows search bar*, masukkan `env`. Pilih *Edit the system environment variables*.

<figure><img src="https://753761090-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtAYQyBIz2BclZ3ZHHlS4%2Fuploads%2Fgit-blob-afdc5e006c2dc27569a782c2dba2f88848e03d7e%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

Tambahkan *path* dari folder *kubectl*.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXevFYeeGrkAJ9fQ03ztLenPM4crk-CeDG_rRNtN15A7kbo6vTvmA0nBr76JEsYM_7i4qaX1oCAfT4GLuTlCjLqeUaGI4IZYoCDE-EbLI-Zn_-UFeT87I5XxKJ_q8MvWChNJx3SzhHkxHCJ17rQuTWk?key=k7F6zkDwbRDarUABscjeWnS8" alt=""><figcaption></figcaption></figure>

2. Unduh menggunakan perintah *curl*. Jalankan perintah berikut:

```bash
curl.exe -LO "https://dl.k8s.io/release/v1.31.0/bin/windows/amd64/kubectl.exe"
```

{% hint style="info" %}
Untuk mengetahui versi terbaru, lihat [*stable.txt*](https://dl.k8s.io/release/stable.txt).
{% endhint %}

Setelah berhasil mengunduh *kubectl*, buka *CMD* atau *PowerShell* pada komputer Anda. Kemudian, periksa versi *kubectl* yang terinstal.

```bash
kubectl version --client
```

<figure><img src="https://753761090-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtAYQyBIz2BclZ3ZHHlS4%2Fuploads%2Fgit-blob-a00c2ecca7ef4298271cd6bcf110950eec32839f%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>
