diff --git a/kuryr_kubernetes/cni/daemon/service.py b/kuryr_kubernetes/cni/daemon/service.py index 5e49c1c97..9b53f5b0a 100644 --- a/kuryr_kubernetes/cni/daemon/service.py +++ b/kuryr_kubernetes/cni/daemon/service.py @@ -183,7 +183,8 @@ class CNIDaemonWatcherService(cotyledon.Service): try: nodename = os.environ['KUBERNETES_NODE_NAME'] except KeyError: - nodename = socket.gethostname() + # NOTE(dulek): By default K8s nodeName is lowercased hostname. + nodename = socket.gethostname().lower() return nodename def run(self):