From 24ea73564ff03e3d995f25fb0049c22d9df41511 Mon Sep 17 00:00:00 2001 From: Roman Dobosz Date: Fri, 27 Mar 2020 09:51:13 +0100 Subject: [PATCH] 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 --- kuryr_kubernetes/cni/health.py | 2 +- kuryr_kubernetes/controller/managers/health.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kuryr_kubernetes/cni/health.py b/kuryr_kubernetes/cni/health.py index 93b524ae7..285048650 100644 --- a/kuryr_kubernetes/cni/health.py +++ b/kuryr_kubernetes/cni/health.py @@ -152,7 +152,7 @@ class CNIHealthServer(object): return data, httplib.OK, self.headers def run(self): - address = '0.0.0.0' + address = '::' try: LOG.info('Starting CNI health check server.') self.application.run(address, CONF.cni_health_server.port) diff --git a/kuryr_kubernetes/controller/managers/health.py b/kuryr_kubernetes/controller/managers/health.py index 25128bbb1..d8c5559be 100644 --- a/kuryr_kubernetes/controller/managers/health.py +++ b/kuryr_kubernetes/controller/managers/health.py @@ -112,7 +112,7 @@ class HealthServer(object): return data, httplib.OK, self.headers def run(self): - address = '0.0.0.0' + address = '::' try: LOG.info('Starting health check server.') self.application.run(address, CONF.health_server.port)