Update kubeconfig
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
-
Log in to the KubeSphere web console as a user with Cluster Management permissions.
-
Click Cluster Management.
-
On the right side of the cluster you want to operate, click
, and then select Update kubeconfig from the drop-down list.
-
In the Update kubeconfig dialog box, enter the kubeconfig information, and then click Update.
Tip You can click
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.