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:
parent
358886022a
commit
24ea73564f
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue