From 236ef6f2810b2b9f37aff386872073eee6979794 Mon Sep 17 00:00:00 2001 From: Pablo Acevedo Montserrat Date: Mon, 6 Feb 2023 15:48:13 +0100 Subject: [PATCH] OCPBUGS-7084: hostnameOverride config missing in kubelet Ever since the hostname change detection was introduced (715612e8) this situation is detected and avoided. There was a missing flag in the kubelet preventing the Ready state of the node, as it was trying to use the new name instead of the established one. --- pkg/node/kubelet.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/node/kubelet.go b/pkg/node/kubelet.go index 137629272d..21dbafdee7 100644 --- a/pkg/node/kubelet.go +++ b/pkg/node/kubelet.go @@ -75,6 +75,7 @@ func (s *KubeletServer) configure(cfg *config.MicroshiftConfig) { kubeletFlags.BootstrapKubeconfig = cfg.KubeConfigPath(config.Kubelet) kubeletFlags.KubeConfig = cfg.KubeConfigPath(config.Kubelet) kubeletFlags.RuntimeCgroups = "/system.slice/crio.service" + kubeletFlags.HostnameOverride = cfg.NodeName kubeletFlags.NodeIP = cfg.NodeIP kubeletFlags.ContainerRuntime = "remote" kubeletFlags.RemoteRuntimeEndpoint = "unix:///var/run/crio/crio.sock"