fix(kubeadm): let Kubelet automatically determine resolvConf (#582)

This commit is contained in:
Wouter van Os
2024-09-19 19:15:30 +02:00
committed by GitHub
parent 8fc1ed14ae
commit f483e812a5
+3
View File
@@ -89,6 +89,9 @@ func getKubeletConfigmapContent(kubeletConfiguration KubeletConfiguration) ([]by
// kubeadm <= v1.27 has a different type for FlushFrequency
// https://github.com/kubernetes/component-base/blob/55b3ab0db0081303695d641b9b43d560bf3f7a65/logs/api/v1/types.go#L42-L45
kc.Logging.FlushFrequency.SerializeAsString = false
// Restore default behaviour so Kubelet will automatically
// determine the resolvConf location, as reported in clastix/kamaji#581.
kc.ResolverConfig = nil
return utilities.EncodeToYaml(&kc)
}