Set default value of report-node-internal-ip-address as true.

Using default value of report-node-internal-ip-address as true can
make sure the ingress can always return ADDRESS, this also keep
backward compatibility with ingress 0.9.0.beta.12 and its previous
releases.
This commit is contained in:
Guangya Liu 2018-02-12 09:43:32 +08:00
parent d4784cfe59
commit 6e291fe9e5

View file

@ -106,7 +106,7 @@ func parseFlags() (bool, *controller.Configuration, error) {
sortBackends = flags.Bool("sort-backends", false,
`Defines if backends and it's endpoints should be sorted`)
useNodeInternalIP = flags.Bool("report-node-internal-ip-address", false,
useNodeInternalIP = flags.Bool("report-node-internal-ip-address", true,
`Defines if the nodes IP address to be returned in the ingress status should be the internal instead of the external IP address`)
showVersion = flags.Bool("version", false,