mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-31 16:46:54 +00:00
Merge pull request #17434 from gmarek/internal_ips
Auto commit by PR queue bot
This commit is contained in:
@@ -138,11 +138,16 @@ var _ = Describe("Density", func() {
|
||||
|
||||
Logf("Listing nodes for easy debugging:\n")
|
||||
for _, node := range nodes.Items {
|
||||
var internalIP, externalIP string
|
||||
for _, address := range node.Status.Addresses {
|
||||
if address.Type == api.NodeInternalIP {
|
||||
Logf("Name: %v IP: %v", node.ObjectMeta.Name, address.Address)
|
||||
internalIP = address.Address
|
||||
}
|
||||
if address.Type == api.NodeExternalIP {
|
||||
externalIP = address.Address
|
||||
}
|
||||
}
|
||||
Logf("Name: %v, clusterIP: %v, externalIP: %v", node.ObjectMeta.Name, internalIP, externalIP)
|
||||
}
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user