-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Support ipv6 for server in ipv6-only kubernetes cluster #7596
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
base: master
Are you sure you want to change the base?
Conversation
|
Reopening PR #7589 |
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.
No issues found across 1 file
|
In a dual-stack environment, both |
Do you mean that IPv4 is disabled, or that routing for IPv4 addresses are not assigned? |
IPv4 is disabled at the host level |
eradman
left a comment
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.
This does solve the problem when running single-stack IPv6
$ host redash.default.svc.mykube.lan
redash.default.svc.mykube.lan has IPv6 address fd00:f4:2::c
Tested on kubernetes using
---
apiVersion: v1
kind: Service
metadata:
name: redash
spec:
clusterIP: None
ports:
- port: 5000
targetPort: 5000
selector:
app: redash
ipFamilyPolicy: SingleStack
ipFamilies:
- IPv6Also confirmed that this is still compatible with IPv4.
Thank you @aldo-airtm!
|
@aldo-airtm please try rebasing this change and pushing agin |
What type of PR is this?
Description
The listener address is hardcoded to IPv4-only (0.0.0.0) which breaks in an IPv6-only host. gunicorn supports the
[::]host as a dualstack wildcard, so that's what I'm changing here.How is this tested?
Built the docker image locally and started it