简体   繁体   中英

Change GKE cluster name

Is there a way to change the cluster name of a GKE cluster?

I know that it is not possible with kubeadm clusters and would need redeployment with the desired name. Is that true in case of GKE clusters as well?

I think not but it's a reasonable request and it's unclear why renaming resources isn't possible generally (?) with Google Cloud Platform resources.

The only reason I can envisage is that resources become uniquely identified by fully-qualified names that include the name. If these names are referenced in other resources, it could be difficult to rename all occurrences.

The challenge is that most GCP methods specify the resource upon which the method is to be applied using some combination of the project, location and the resource name, eg projects.locations.clusters methods are mostly all:

The name (project, location, cluster) of the cluster to update. Specified in the format projects/ /locations/ /clusters/*.

So there would need to be a separate move|rename method. Someone raised this issue before but it has languished without much love. If you'd like to promote it, you may wish to (star) it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM