File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
pkg/cmd/server/kubernetes/node Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -362,6 +362,9 @@ func (c *NodeConfig) RunProxy() {
362
362
switch c .ProxyConfig .Mode {
363
363
case componentconfig .ProxyModeIPTables :
364
364
glog .V (0 ).Info ("Using iptables Proxier." )
365
+ if bindAddr .Equal (net .IPv4zero ) {
366
+ bindAddr = getNodeIP (c .Client , hostname )
367
+ }
365
368
if c .ProxyConfig .IPTablesMasqueradeBit == nil {
366
369
// IPTablesMasqueradeBit must be specified or defaulted.
367
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 ,
379
- getNodeIP ( c . Client , hostname ) ,
382
+ bindAddr ,
380
383
recorder ,
381
384
)
382
385
if err != nil {
You can’t perform that action at this time.
0 commit comments