-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add configuration to disable listening on ipv6 #371
Conversation
Coverage decreased (-0.008%) to 45.37% when pulling 812ff196cfe34e08d0bb86543ad83d9ac3e39a95 on gianrubio:disable-ipv6 into 75124bc on kubernetes:master. |
@gianrubio please rebase |
I can confirm that this fixes the nginx ingress controllers on our systems where ipv6 is not enabled. |
66fc4ff
to
48f28bd
Compare
@aledbf done! |
@@ -384,7 +384,7 @@ http { | |||
# Use the port 18080 (random value just to avoid known ports) as default port for nginx. | |||
# Changing this value requires a change in: | |||
# https://github.com/kubernetes/contrib/blob/master/ingress/controllers/nginx/nginx/command.go#L104 | |||
listen [::]:18080 ipv6only=off default_server reuseport backlog={{ .BacklogSize }}; | |||
listen {{ if not $cfg.DisableIpv6 }}[::]:{{ end }}18080 ipv6only=off default_server reuseport backlog={{ .BacklogSize }}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing {{ if not $cfg.DisableIpv6 }}ipv6only=off{{ end }}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
/lgtm |
@gianrubio thanks! |
Thanks! |
how achive this from helm chart |
Fix #368