Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.0.0
-
None
-
None
-
kubernetes
Description
I'm working on getting Atlas run on a k8s environment, and that requires the application running in the pod to listen to 0.0.0.0 bind address as there is no way to know the pod IP address in advance. However, setting atlas.server.bind.address property to 0.0.0.0 will force Atlas to listen to localhost.
The problem relies on this code in atlas_config.py[1]:
if (host == '0.0.0.0'): host = DEFAULT_ATLAS_SERVER_HOST print "starting atlas on host %s" % host return host
So unless there's a good reason to return localhost when setting to 0.0.0.0 this code is wrong.
[1] https://github.com/apache/atlas/blob/master/distro/src/bin/atlas_config.py#L505-L506