Support ipv6 for server in ipv6-only kubernetes cluster#7596
Support ipv6 for server in ipv6-only kubernetes cluster#7596eradman merged 1 commit intogetredash:masterfrom
Conversation
|
Reopening PR #7589 |
|
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.
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 |
Head branch was pushed to by a user without write access
@eradman Sorry it took a while, it's now rebased |
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