Skip to content
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

DruidIngestion fails for k8s clusters that set clusterDomain #213

Open
StephenLasseter opened this issue Mar 6, 2025 · 0 comments · May be fixed by #214
Open

DruidIngestion fails for k8s clusters that set clusterDomain #213

StephenLasseter opened this issue Mar 6, 2025 · 0 comments · May be fixed by #214

Comments

@StephenLasseter
Copy link

StephenLasseter commented Mar 6, 2025

When attempting to add a DruidIngestion resource on a k8s cluster which has a clusterDomain set to anything other than cluster.local, it will fail due to cluster.local being hard-coded in the GetRouterSvcUrl fuction in druidapi.go.

Error from operator logs when I try to apply a DruidIngestion resource:

2025-03-05T04:17:52Z    ERROR   Post "http://REDACTED-routers.REDACTED.svc.cluster.local:8088/druid/indexer/v1/supervisor": dial tcp: lookup REDACTED-routers.druid-REDACTED.svc.cluster.local on 10.96.0.10:53: no such host   {"controller": "druidingestion", "controllerGroup": "druid.apache.org", "controllerKind": "DruidIngestion", "DruidIngestion": {"name":"REDACTED","namespace":"druid-REDACTED"}, "namespace": "druid-REDACTED", "name": "REDACTED", "reconcileID": "c746475a-36b3-49c9-b018-4ef7166e9c22", "error": "Post \"http://REDACTED.svc.cluster.local:8088/druid/indexer/v1/supervisor\": dial tcp: lookup REDACTED-routers.REDACTED.svc.cluster.local on 10.96.0.10:53: no such host"}

Code at fault:

newName := "http://" + svcName + "." + namespace + ".svc.cluster.local:" + DruidRouterPort

@StephenLasseter StephenLasseter linked a pull request Mar 9, 2025 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant