Is there a way to get the UID of the Kubernetes cluster? [closed] Is there a way to get the UID of the Kubernetes cluster? [closed] kubernetes kubernetes

Is there a way to get the UID of the Kubernetes cluster? [closed]


if you have multi cluster and in each cluster you have multi user and namespace, and you want to handle switching between them, it is better to use kubernetes contexts, https://kubernetes.io/docs/tasks/access-application-cluster/configure-access-multiple-clusters/if you just need something unique about cluster, use certificate authority information(ca.crt or ca.key in /etc/kubernetes/pki/ directory). but be careful those files should be secured