How to use kubeconfig on Linux
Last updated
Last updated
After you have successfully downloaded Kube Config on the Deka GPU Service Portal. The following is a guide to using Kube Config on the Linux operating system.
Download the latest version of kubectl in use and run the following command line in your terminal.
To download a specific version, replace $(curl -L -s https://dl.k8s.io/release/stable.txt)
with the specific version to download. Here's an example of the syntax executed for a specific download. The following downloads version 1.31.0:
x86-64 type
ARM64 type
validasi berkas binary dengan menjalankan sintak berikut.
If validation of the binary file is successful, it displays kubectl status: OK. Install kubectl by running the syntax below.
To ensure the version used is the latest version, run the following syntax.
Create a new directory named .kube in the home directory by executing the following syntax.
After creating a new directory, create a new file in the kube directory with the name config which will store the kubernetes configuration file that you previously downloaded via the Deka GPU Portal Service.
Open the kube-config.yaml file previously downloaded via the Deka GPU Portal Service using the text editor you have on your computer. If you haven't downloaded the kube-config file, you can follow the Download kubeconfig subsection. Copy the contents of the kube-config.yaml file to the config file as shown below.
To save the vm.yaml file by pressing CTRL+O, then press Enter, and exit with CTRL+X. Check that the pods in the cluster have been successfully accessed by running the following syntax.