Change default listening address for health checks.

Currently, regardless of the version of the IP protocol used, health
check services for kuryr CNI and kuryr controller, are always listen on
0.0.0.0, which effectively means any interface. In this patch we propose
to chang that to include IPv6 address as well.

Change-Id: I96fc1033b93bd54b70c7caaa428076baf73b4207
This commit is contained in:
Roman Dobosz 2020-03-27 09:51:13 +01:00
parent 358886022a
commit 24ea73564f
2 changed files with 2 additions and 2 deletions

View File

@ -152,7 +152,7 @@ class CNIHealthServer(object):
return data, httplib.OK, self.headers return data, httplib.OK, self.headers
def run(self): def run(self):
address = '0.0.0.0' address = '::'
try: try:
LOG.info('Starting CNI health check server.') LOG.info('Starting CNI health check server.')
self.application.run(address, CONF.cni_health_server.port) self.application.run(address, CONF.cni_health_server.port)

View File

@ -112,7 +112,7 @@ class HealthServer(object):
return data, httplib.OK, self.headers return data, httplib.OK, self.headers
def run(self): def run(self):
address = '0.0.0.0' address = '::'
try: try:
LOG.info('Starting health check server.') LOG.info('Starting health check server.')
self.application.run(address, CONF.health_server.port) self.application.run(address, CONF.health_server.port)