add nodeport-addresses flag for kube-proxy

This commit is contained in:
m1093782566
2018-01-17 10:15:43 +08:00
parent 52b7aab09a
commit bc850adce4
7 changed files with 29 additions and 1 deletions

View File

@@ -433,6 +433,9 @@ oomScoreAdj: 17
portRange: "2-7"
resourceContainer: /foo
udpIdleTimeout: 123ms
nodePortAddresses:
- "10.20.30.40/16"
- "fd00:1::0/64"
`
testCases := []struct {
@@ -545,6 +548,7 @@ udpIdleTimeout: 123ms
PortRange: "2-7",
ResourceContainer: "/foo",
UDPIdleTimeout: metav1.Duration{Duration: 123 * time.Millisecond},
NodePortAddresses: []string{"10.20.30.40/16", "fd00:1::0/64"},
}
options := NewOptions()