Update kubeconfig

This section explains how to update the kubeconfig information of member clusters.

After adding member clusters on the KubeSphere platform, if there are changes in the access information of the member clusters, you need to update the kubeconfig of the member clusters.

Note

KubeSphere only supports updating the kubeconfig information of clusters added through direct connections and does not support updating the kubeconfig information of clusters added through agent connections.

Prerequisites

You should have the Cluster Management permission on the KubeSphere platform. For more information, refer to “Platform Roles”.

Steps

  1. Log in to the KubeSphere web console with a user who has the Cluster Management permission.

  2. Click Cluster Management.

  3. Click more on the right side of the cluster you want to edit, then select Update kubeconfig from the dropdown list.

  4. In the Update kubeconfig dialog, enter the kubeconfig information and then click Update.

    Tip

    You can click upload-dark-white to upload kubeconfig files from your local machine.

    The KubeSphere web console of the host cluster will use the new kubeconfig information to connect to the member clusters.