Renaming the Cluster¶
Objective: Quickly change your Kubernetes cluster’s display name from the default local
to something more descriptive (e.g., Demo Cluster
).
Prerequisites¶
- You have an SSH session to the Management/Control Plan node.
- You have
kubectl
installed and configured to manage the cluster. - You have sufficient permissions (e.g., cluster-admin) to edit cluster objects.
Steps¶
-
Open the Cluster Configuration
This command opens the cluster’s YAML configuration in your default text editor.
-
Update the
displayName
Field In the YAML file, locate thedisplayName
field. Change its value fromlocal
to your desired name, such as:yaml displayName: "Demo Cluster"
-
Save and Exit After editing, save the file and close your editor. The change is automatically applied.
-
Verify the New Display Name
-
Refresh your cluster UI or run:
-
Ensure the
displayName
reflects the new name (e.g.,Demo Cluster
).
-
Need More Details?
If you get stuck or want advanced tips (e.g., about multi-cluster setups or working with specific Kubernetes distributions), refer to the in-depth Renaming the Cluster documentation.