title: How to get cluster id using kubectl command
body: <p>I need cluster-id using kubectl command.</p>
  
  <pre><code>root@vagrant-xenial64:~# kubectl get cm cluster-info -n kube-system -o jsonpath='{.data.cluster-config\.json}'
  {
    "cluster_id": "xxx",
    "cluster_name": "prod-yyy-mmm",
    "cluster_type": "rrr",
    "cluster_pay_tier": "vvv",
    "datacenter": "cse",
    "account_id": "456777",
    "created": "2018-06-32323dffdf:35:48+0000"
  }
  </code></pre>
  
  <p>I need <code>cluster-id</code> of this particular json</p>
  
  <pre><code>root@vagrant-xenial64:~# kubectl get cm cluster-info -n kube-system -o jsonpath='{.data.cluster-config\.json.cluster_id}'
  root@vagrant-xenial64:~# 
  </code></pre>
  
  <p>Above command returns empty string.
  I tried many other combinations too</p>