title: how to get a node's private IP using kubernetes go-client?
body: <p>In my kubernetes cluster, all nodes have both a public IP and a private IP. I am using kubernetes go-client and want to get node's private IP like below code snippet:</p>
  
  <pre><code>for _, addr := range n.Status.Addresses {
      if addr.Type == kube_api.NodeInternalIP &amp;&amp; addr.Address != "" {
          fmt.Println("internal IP")
          nodeIP = addr.Address
          fmt.Println(nodeIP)
      }
      if addr.Type == kube_api.NodeExternalIP &amp;&amp; addr.Address != "" {
          fmt.Println("external IP")
          nodeIP = addr.Address
          fmt.Println(nodeIP)
      }
      if addr.Type == kube_api.NodeLegacyHostIP &amp;&amp; addr.Address != "" {
          fmt.Println("lgeacyhost IP")
          nodeIP = addr.Address
          fmt.Println(nodeIP)
      }
  }
  </code></pre>
  
  <p>However, the NodeInternalIP and NodeExternalIP all returns the public IP. </p>
  
  <p>Is there a way to get the private IP of a node?</p>
  
  <p>Thanks a lot.</p>