adarshsanjeev commented on code in PR #17697:
URL: https://github.com/apache/druid/pull/17697#discussion_r1944220972
##########
distribution/docker/druid.sh:
##########
@@ -138,8 +138,15 @@ then
setKey _common druid.zk.service.host "${ZOOKEEPER}"
fi
-DRUID_SET_HOST_IP=${DRUID_SET_HOST_IP:-0}
-if [ "${DRUID_SET_HOST_IP}" = "1" ]
+if [ -z ${KUBERNETES_SERVICE_HOST} ]
+then
+ DRUID_SET_HOST=${DRUID_SET_HOST:-1}
+else
+ # Running in kubernetes
+ DRUID_SET_HOST=${DRUID_SET_HOST:-0}
Review Comment:
Added
##########
distribution/docker/druid.sh:
##########
@@ -138,8 +138,15 @@ then
setKey _common druid.zk.service.host "${ZOOKEEPER}"
fi
-DRUID_SET_HOST_IP=${DRUID_SET_HOST_IP:-0}
-if [ "${DRUID_SET_HOST_IP}" = "1" ]
+if [ -z ${KUBERNETES_SERVICE_HOST} ]
Review Comment:
Changed!
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]