-
Notifications
You must be signed in to change notification settings - Fork 716
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not write a resolvConf value in the global kubetconfiguration, write it dynamically per node #3034
Comments
this is intended. kubeadm will only update the
if the service is active but the file is missing, then that problem must be fixed. if the service is not active the kubelet will default the field to |
Please check the What happened?. If different OS are used, |
again, if the service systemd-resolved is enabled the path passed to kubelet should be |
In the mentioned case systemd-resolved is disabled for RHEL9. Let me rephrase the test case:
|
ok, now i understand the problem. this was not clear in your description. so first of all, most of the users use the same distro or distro family for a single cluster, so kubeadm is correct for these users. over there systemd-resolved is really enabled or not. what can be done to make kubeadm better here is to:
|
we are close to code freeze for 1.30. this can be changed for 1.31, but i don't think it should be backported. PRs welcome, explained above: |
Is this a BUG REPORT or FEATURE REQUEST?
FEATURE REQUEST
Versions
kubeadm version (use
kubeadm version
): v1.29.1Environment:
kubectl version
): v1.29.1uname -a
): 5.15.0-50-genericWhat happened?
If
kubeadm init
node on Ubuntu 20.04 andkubeadm join
node on RHEL9, the joining fails with "open /run/systemd/resolve/resolv.conf: no such file or directory" in kubelet logs.W/A: use patches or delete resolvConf from kubelet-config ConfigMap before joining.
What you expected to happen?
kubeadm init
does not write default resolvConf inKubeletConfigurationkubelet-config ConfigMap. Instead, resolvConf is omitted in kubelet-config ConfigMap, and real value in /var/lib/kubelet/config.yaml is calculated dynamically depending on if systemd-resolved service is active.How to reproduce it (as minimally and precisely as possible)?
See What happened?.
Anything else we need to know?
The text was updated successfully, but these errors were encountered: