Why this matters beyond the homelab: “Not yet valid” is a statement about the validator’s clock before it is a statement about the certificate. Check the time on the machine rejecting the credential before touching the credential.
The Error
After a reboot cycle, kubectl on Gauntlet, one of the three K3s nodes, stopped working:
Unable to connect to the server: tls: failed to verify certificate: x509:
certificate has expired or is not yet valid: current time 2026-07-27T16:16:52-07:00
is before 2026-10-18T05:57:30Z
The other two nodes were fine. Gauntlet had joined the cluster and reported Ready earlier, so the failure came after a power or reboot event, not at install.
The Cause
“Expired” and “not yet valid” are different failures. Not yet valid means the certificate’s start date is later than the clock of the machine checking it, so it points at the validator before the certificate.
The certificates had been issued at install time in October. timedatectl on Gauntlet read 27 July with the system clock unsynchronized. A Raspberry Pi has no battery-backed real-time clock, so after losing power it restores an old saved timestamp until NTP corrects it. The node most likely lost power while I moved it, and it came back thinking it was months in the past.
There was a second surprise. The Ubuntu 26.04 image has no systemd-timesyncd. Restarting it returned “Unit not found” even though the status line said NTP service active. Chrony was the service doing the work.
The Fix
I set the date by hand to get the node talking, then let chrony step the clock to its time source and confirmed kubectl worked again.
I did not delete or regenerate any certificates. That would have appeared to work by issuing new certificates with a later start date, hidden the real fault, and risked etcd trust between the three servers.
I later restarted all three Pis within a minute of each other. All three came back with the correct date, synchronized, and Ready. That is a stronger result than three staggered reboots, though a simultaneous restart takes etcd below quorum, so staggering stays the rule for real maintenance.
What Is Still Open
A soft reboot does not reproduce a power loss, and the July clock came from a power loss. A cold boot test is still owed: power the node off, unplug it, plug it back in, and read date before anything else. If the date is wrong, the next step is a drop-in for the K3s service that orders its start after chrony and the time-sync target. If it is right, the drop-in is optional. Until that test passes, this is mitigated, not closed.
Takeaways
“Not yet valid” is a clock problem first. Compare the validator’s date with the certificate’s start date before touching either.
On hardware without an RTC, make date the first command after any power event.
Do not regenerate certificates to solve a time problem. It masks the cause and can break trust between etcd members.
A fix is not verified until it survives the failure that caused it. A soft reboot is not a power loss.
Related: A Fourth Node for Maintenance, Not Capacity | Asking the Cluster Instead of the Documentation | The Alliance Fleet, Reintroduced