-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
K8s Dualstack Nginx incorrectly interpret IPv6 #7081
Comments
I suspect the issue is with 10-configure-nginx.sh lines 10-11 And might need to be fixed like this. Here is how the
After I process this file with this new code: nameservers=$(awk '$1=="nameserver" {
ns = $2;
if (ns ~ /:/) {
printf "[%s] ", ns;
} else {
printf "%s ", ns;
}
}' /etc/resolv.conf)
echo "resolver $nameservers;" > $OPT_DIR/nginx/resolv.conf Here is how the resulting
Now it looks correct to me. |
Hello, Thank you so much for reaching out! We are currently implementing a fix and will be introduced in the upcoming release! Thank you again and have a lovely day!
|
Which version of the packaged docker container is this fix expected to be implemented? |
Describe the bug
In the k8s environment with DualStack IP (IPv6 & IPv4) when the nginx container starts it automatically gets IPv4 & IPv6 addresses bound to the pod. When it initializes its config, it incorrectly interprets the IPv6 address that has column symbols in it as the port number (See the logs). Note that in the DualStack k8s environment, Pod will have two IPs simultaneously: IPv4 & IPv6.
To Reproduce
Install k8s with DualStack CNI.
Deploy label-studio via helm.
Expected behavior
Nginx init script should be able to generate config for the nginx server using IPv6 address that contains the column symbols
:
. IPv6 addresses typically must be encapsulated with square brackets like this:http://[2001:cafe:42:1::a]:8080
to be correctly processed.Screenshots
logs attached
Environment (please complete the following information):
k8s 1.27
label-studio helm chart v1.9.4
nginx container image:
docker.io/heartexlabs/label-studio:1.16.0
The issue seems to be with 10-configure-nginx.sh or docker-entrypoint.sh.
Additional context
Log from the nginx container in the label studio-ls-app Pod (see
invalid port in resolver "2001:cafe:42:1::a"
):cilium/cilium#37627
The text was updated successfully, but these errors were encountered: