Skip to content

Commit 8a76c27

Browse files
authored
Merge pull request kubernetes#88573 from davidstack/master
the result value of functrion NodeIPS will contain the docker0 ip , update the comment
2 parents 88c1386 + b199dd8 commit 8a76c27

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/proxy/ipvs/netlink_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ func (h *netlinkHandle) ListBindAddress(devName string) ([]string, error) {
135135
// 172.17.0.1 dev docker0 scope host src 172.17.0.1
136136
// 192.168.122.1 dev virbr0 scope host src 192.168.122.1
137137
// Then cut the unique src IP fields,
138-
// --> result set: [10.0.0.1, 10.0.0.10, 10.0.0.252, 100.106.89.164, 127.0.0.1, 192.168.122.1]
138+
// --> result set: [10.0.0.1, 10.0.0.10, 10.0.0.252, 100.106.89.164, 127.0.0.1, 172.17.0.1, 192.168.122.1]
139139

140140
// If dev is specified, it's equivalent to exec:
141141
// $ ip route show table local type local proto kernel dev kube-ipvs0

pkg/proxy/ipvs/proxier.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ type realIPGetter struct {
286286
// 172.17.0.1 dev docker0 scope host src 172.17.0.1
287287
// 192.168.122.1 dev virbr0 scope host src 192.168.122.1
288288
// Then filter out dev==kube-ipvs0, and cut the unique src IP fields,
289-
// Node IP set: [100.106.89.164, 127.0.0.1, 192.168.122.1]
289+
// Node IP set: [100.106.89.164, 127.0.0.1, 172.17.0.1, 192.168.122.1]
290290
func (r *realIPGetter) NodeIPs() (ips []net.IP, err error) {
291291
// Pass in empty filter device name for list all LOCAL type addresses.
292292
nodeAddress, err := r.nl.GetLocalAddresses("", DefaultDummyDevice)

0 commit comments

Comments
 (0)