Merge "Lowercase hostname when using it as K8s nodeName"
This commit is contained in:
commit
b3883624e8
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user