We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 651dd88 + c9b91fa commit 4423ff5Copy full SHA for 4423ff5
pkg/cmd/server/kubernetes/node/node.go
@@ -362,6 +362,9 @@ func (c *NodeConfig) RunProxy() {
362
switch c.ProxyConfig.Mode {
363
case componentconfig.ProxyModeIPTables:
364
glog.V(0).Info("Using iptables Proxier.")
365
+ if bindAddr.Equal(net.IPv4zero) {
366
+ bindAddr = getNodeIP(c.Client, hostname)
367
+ }
368
if c.ProxyConfig.IPTablesMasqueradeBit == nil {
369
// IPTablesMasqueradeBit must be specified or defaulted.
370
glog.Fatalf("Unable to read IPTablesMasqueradeBit from config")
@@ -376,7 +379,7 @@ func (c *NodeConfig) RunProxy() {
376
379
int(*c.ProxyConfig.IPTablesMasqueradeBit),
377
380
c.ProxyConfig.ClusterCIDR,
378
381
hostname,
- getNodeIP(c.Client, hostname),
382
+ bindAddr,
383
recorder,
384
)
385
if err != nil {
0 commit comments