This article explains the `cluster name` of kubernetes in Contrail 5.x environment and provides the steps for locating the configuration option to change the value.
In Contrail, the Kubernetes 'cluster name' is configurable during deployment process only. If you do not configure it, 'k8s' will be the default. Once the cluster is created, the name can no longer be changed.
To view the 'cluster name', go to 'contrail-kube-manager' (KM) docker and check the configuration file.
Locate the 'KM' docker container:
$ docker ps -a | grep kubemanager 2260c7845964 ...snipped... ago Up 2 minutes kubemanager_kubemanager_1
Login to the `KM` container:
$ docker exec -it kubemanager_kubemanager_1 bash
Find the 'cluster_name' option:
$ grep cluster /etc/contrail/contrail-kubernetes.conf cluster_name=k8s <-- cluster_project={} cluster_network={}