Wait for HA peer DNS before starting kea-dhcp4 #5
Reference in New Issue
Block a user
Delete Branch "benvin/ha-peer-dns-wait"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
After v0.1.2 fixed the socket dir perms, kea-dhcp4 reaches the HA hook and crash-loops on a cold container start. The HA hook resolves the StatefulSet peer URL hostnames once at config load, but the peer DNS records aren't resolvable in the first moment of a fresh container's network, and kea exits hard instead of retrying:
Verified in-cluster: the exact rendered config passes
kea-dhcp4 -tonce DNS is warm (hostnames, FQDNs, and IPs all validate) — so this is purely a startup race, not an invalid config.How
kea-dhcp4 -tand retry (up to ~2m) until the config validates, then exec the serverNeeds a v0.1.3 release so argocd-apps can bump the operator image.