Renaming the Cluster¶
By default, MemVerge.ai names the main cluster as local. If you prefer a more descriptive name, you can use kubectl
to edit the cluster object and update its display name.
Prerequisites¶
- You must have
kubectl
installed and configured to communicate with the cluster you want to rename. - You need sufficient permissions to edit cluster objects (e.g., a cluster-admin role).
Steps to Rename¶
-
Open the Cluster Configuration in an Editor
Run the following command to open the cluster configuration in your default text editor: -
Locate the
displayName
Field
In the editor, look for thedisplayName
field within the YAML. It will likely be set to"local"
by default. -
Update the
displayName
Change the value from"local"
to your desired name, for example: -
Save and Exit
Save your changes and close the editor.kubectl
will automatically apply the updated configuration to the cluster. -
Verify the Change
- Return to your cluster UI or run
kubectl get clusters.management.cattle.io local -o yaml
to confirm that thedisplayName
field reflects the new name. - The UI should now show Demo Cluster in place of local, improving clarity for administrators and users alike.
- Return to your cluster UI or run
Tip: Keep your cluster name concise yet descriptive, especially in multi-cluster environments where clear labeling helps avoid misconfiguration or confusion.