-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
FE Proxy fails to route the requests correctly if the non-default dns setup is utilized. #49984
Comments
did you have a customized domain name setup for the kubernetes cluster instead of default @zakhalex what's the canonical service dns name in your kubernetes cluster setup? |
@kevincai correct - in the environment where this issue happens, it is a customized domain name instead of the default .cluster.local (In other words - it is NOT cluster.local) |
@zakhalex it is caused by the hardcode domain name of the kubernetes cluster in line https://github.com/StarRocks/starrocks-kubernetes-operator/blob/main/pkg/subcontrollers/feproxy/feproxy_configmap.go#L30 You can modify the line, change the We will take a look how to support customized domain name in operator. |
@zakhalex wait for the next release of the operator to suppport customized domain setup. refer to StarRocks/starrocks-kubernetes-operator#604 |
Thank you, @kevincai |
FE Proxy fails to route the requests correctly if the non-default dns setup is utilized. When I modify values.yaml setting up
resolver: "kube-dns.kube-system.svc.mycustomizations.com"
in line 1074 of https://github.com/StarRocks/starrocks-kubernetes-operator/blob/main/helm-charts/charts/kube-starrocks/values.yaml
the proxy starts up, but upon receiving streming load request to upload a csv file fails with errors like
"PUT /api/my_db/my_jobs/_stream_load HTTP/1.1" 502 182 "-" "curl/8.2.1" ││ 2024/08/14 15:00:03 [error] 20#20: *18 kube-starrocks-fe-service.starrocks.svc.cluster.local could not be resolved (3: Host not found) indicating that custom setting does not get fully propagated.
Starrocks version is 3.3.2 setup in Kubernetes cluster. The deployment is done through kubernetes operator helm chart (https://docs.starrocks.io/docs/deployment/helm/).
The issue appears both on default version of nginx and on v1.27.
At the same time regular FE has no issues with resolution (as seen on the attached screenshot) - only FE Proxy has.
Steps to reproduce the behavior (Required)
"col1","col2"
1,"ABC"
2,"DEF"
3,"GHI"
curl --location-trusted -u root: -H "label:custom_label1" -H "Expect:100-continue" -H "column_separator:," -H "columns: col1, col2" -T Tab1.csv -XPUT http://<fe_proxy_ip>:<fe_proxy_port>/api/control_db/test_table/_stream_load
Expected behavior (Required)
Real behavior (Required)
StarRocks version (Required)
3.3.2 (but initially observed on 3.3.1)
The text was updated successfully, but these errors were encountered: