<p>When I run the following command to get info from my on-prem cluster,</p>

<p>kubectl cluster-info dump</p>

<p>I see the followings per each node.</p>

<p>On master</p>

<pre><code>"addresses": [
                    {
                        "type": "ExternalIP",
                        "address": "10.10.15.47"
                    },
                    {
                        "type": "InternalIP",
                        "address": "10.10.15.66"
                    },
                    {
                        "type": "InternalIP",
                        "address": "10.10.15.47"
                    },
                    {
                        "type": "InternalIP",
                        "address": "169.254.6.180"
                    },
                    {
                        "type": "Hostname",
                        "address": "k8s-dp-masterecad4834ec"
                    }
                ],

</code></pre>

<p>On worker node1</p>

<pre><code>"addresses": [
                    {
                        "type": "ExternalIP",
                        "address": "10.10.15.57"
                    },
                    {
                        "type": "InternalIP",
                        "address": "10.10.15.57"
                    },
                    {
                        "type": "Hostname",
                        "address": "k8s-dp-worker5887dd1314"
                    }
                ],

</code></pre>

<p>On worker node2</p>

<pre><code>"addresses": [
                    {
                        "type": "ExternalIP",
                        "address": "10.10.15.33"
                    },
                    {
                        "type": "InternalIP",
                        "address": "10.10.15.33"
                    },
                    {
                        "type": "Hostname",
                        "address": "k8s-dp-worker6d2f4b4c53"
                    }
                ],

</code></pre>

<p>My question here is..</p>

<p>1.) Why some nodes have different ExternalIP and InternalIP and some don't?
2.) Also for the node that have different ExternalIP and InternalIP are in same CIDR range and both can be reached from outside.  What is so internal / external about these two IP address? (What is the purpose?)
3.) Why some node have random 169.x.x.x IP-address?</p>

<p>Trying to still learn more about Kubernetes and it would be greatly helpful if someone can help me understand.  I use contiv as network plug-in</p>

hinewwiner
<p>What you see is part of the status of these nodes:</p>

<ul>
<li><strong>InternalIP:</strong> IP address of the node accessible only from within the cluster</li>
<li><strong>ExternalIP:</strong> IP address of the node accessible from everywhere</li>
<li><strong>Hostname:</strong> hostname of the node as reported by the kernel</li>
</ul>

<p>These fields are set when a node is added to the cluster and their exact meaning depends on the cluster configuration and is not completely standardised, as stated in the <a href="https://kubernetes.io/docs/concepts/architecture/nodes/#addresses" rel="noreferrer">Kubernetes documentation</a>.</p>

<p>So, the values that you see are like this, because your specific Kubernetes configuration sets them like this. With another configuration you get different values.</p>

<p>For example, on Amazon EKS, each node has a distinct InternalIP, ExternalIP, InternalDNS, ExternalDNS, and Hostname (identical to InternalIP). Amazon EKS sets these fields to the corresponding values of the node in the cloud infrastructure.</p>
