Commit 06113d3b authored by Saad Ali's avatar Saad Ali

Merge pull request #16137 from ArtfulCoder/externalIPFix

release NodePort correctly
parents 038f871c 7c64802f
......@@ -655,7 +655,7 @@ func (proxier *Proxier) closeOnePortal(portal portal, protocol api.Protocol, pro
if local, err := isLocalIP(portal.ip); err != nil {
el = append(el, fmt.Errorf("can't determine if IP is local, assuming not: %v", err))
} else if local {
if err := proxier.releaseNodePort(nil, portal.port, protocol, name); err != nil {
if err := proxier.releaseNodePort(portal.ip, portal.port, protocol, name); err != nil {
el = append(el, err)
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment