You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by "FrankChen021 (via GitHub)" <gi...@apache.org> on 2025/05/02 01:56:52 UTC
Re: [I] Druid 33.0.0: coordinators not reachable when using druid-kubernetes-extensions (druid)
FrankChen021 commented on issue #17961:
URL: https://github.com/apache/druid/issues/17961#issuecomment-2846131854
> > So this change breaks communication with nodes that are deployed as `Deployment` kind in Kubernetes. To recover the old behavior, I shall set `DRUID_SET_HOST_IP=1`. My Helm chart is not using environment variables, but generating Java system properties instead. I would like to keep it that way for consistency, so can I use `-Ddruid.set.host.ip=1` instead?
>
> Looking at the source code, it seems like the answer is "no". Here's the relevant code:
>
> if [ -z "${KUBERNETES_SERVICE_HOST}" ]
> then
> # Running outside kubernetes, use IP addresses
> DRUID_SET_HOST_IP=${DRUID_SET_HOST_IP:-1}
> else
> # Running in kubernetes, so use canonical names
> DRUID_SET_HOST_IP=${DRUID_SET_HOST_IP:-0}
> fi
>
> if [ "${DRUID_SET_HOST_IP}" = "1" ]
> then
> setKey $SERVICE druid.host $(ip r get 1 | awk '{print $7;exit}')
> fi
> Well, that clearly doesn't work for `Deployment` resource kinds.
Put the `DRUID_SET_HOST_IP` in the helm value files.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org