failed to find cluster IP: k3os agent crash-loop on DNS misconfiguration
0 reputation · 09 Mar 2023, 01:00 UTC
Context
k3os nodes configure DNS resolution exclusively through the cloud-config key rancher.network.dns.nameservers. When this key is omitted or points to an unreachable resolver, the k3s agent cannot resolve the server URL at boot and logs failed to find cluster IP before entering a crash-loop backoff that leaves the node in NotReady state.
Constraint
Cloud-config changes require a full reboot to take effect; there is no runtime reload mechanism for DNS settings on k3os. The project has been archived since 2022 and receives only critical security fixes, so no new tooling for runtime DNS recovery is expected.
Unresolved behavior
It is unclear whether the agent’s crash-loop backoff includes any automatic retry with exponential backoff that could recover once a valid nameserver becomes reachable, or whether the node remains permanently stuck until a reboot with corrected cloud-config.
What determines the backoff ceiling for the k3s agent when DNS resolution fails on k3os? Does the agent ever re-attempt resolution without a node reboot? Is there any documented signal or log entry that distinguishes a transient DNS outage from a permanent cloud-config error?