<p>I use client-go to manage multi k8s clusters. Is there any unique mark that can be used to distinguish different k8s clusters?</p>

Anur Sakurakouji
<p>This is an open <a href="https://github.com/kubernetes/kubernetes/issues/77487" rel="nofollow noreferrer">issue</a>, yet to be supported. But the current workaround is the <strong>use of the kube-system namespace UID</strong>. Two or more clusters can have the same kube-system UID(by taking backup of etcd), but this is a very rare case.</p>
<pre class="lang-golang prettyprint-override"><code>kubeSystem, err := client.CoreV1().Namespaces().Get(context.TODO(),&quot;kube-system&quot;,metav1.GetOptions{})
if err != nil {
    log.Fatal(err)
}
uniqueID := kubeSystem.UID
</code></pre>
