This section describes how to update the kubeconfig information of a member cluster.

After adding a member cluster to the KubeSphere platform, if the access information of the member cluster changes, you need to update the kubeconfig information of the member cluster.

Note

KubeSphere only supports editing the kubeconfig information of clusters added via direct connection, and does not support editing the kubeconfig information of clusters added via proxy connection.

Prerequisites

You need to have the Cluster Management permission on the KubeSphere platform.

Steps

  1. Log in to the KubeSphere web console as a user with Cluster Management permissions.

  2. Click Cluster Management.

  3. On the right side of the cluster you want to operate, click more, and then select Update kubeconfig from the drop-down list.

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

    Tip

    You can click upload-dark-white to upload a kubeconfig configuration file from your local machine.

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