Skip to main content

Using Virtual Kubernetes Services

Updated at: 2025-12-12 10:04:25

After Virtual Kubernetes Services (VKS) has been created and the user has been authorized, the VKS cluster can be accessed by configuring environment variables. Detailed instructions are provided below.

Prerequisites

tip

To ensure proper operation of VKS, it is strongly recommended that you do not to delete any resources you see after connecting to the cluster via kubeconfig for the first time.

Procedure

Users can use VKS by configuring environment variables. Follow the steps below:

  1. Sign in to the Alaya NeW platform using your registered company account, and click [Products /Computing/Virtual Kubernetes Services].

  2. Click "Cluster Management" to open the cluster list, then locate the created VKS cluster, as highlighted below.

vksuserlist

  1. Click the "kubeconfig download" link (highlighted in green above) to download the kubeconfig file to your local machine.

  2. Open a terminal and navigate to the directory where the kubeconfig file was downloaded. The following sections describe how to configure environment variables on different operating systems.

  1. In the terminal, run the following command to configure the environment variable for accessing VKS, as shown below:

    vksuserlist

    $env:KUBECONFIG="yourpath"
    Tip

    Replace yourpath with the actual path to your VKS kubeconfig file.

  2. Run the following command to verify whether the cluster connection is successful. If the output appears as shown in the highlighted section below, the cluster is connected successfully.

    vksuserlist

    kubectl cluster-info
Important

The environment variable configuration for VKS is valid only within the current terminal session. Once the terminal window is closed, the configuration will no longer persist.