mirror of
https://github.com/tailscale/tailscale.git
synced 2026-12-05 08:02:20 -08:00
* cmd/k8s-operator,k8s-operator: apply ProxyClass probes to PeerRelay pods The ProxyClass livenessProbe and readinessProbe from #22461 were applied only to ProxyGroups. A PeerRelay StatefulSet rolls with RollingUpdate, but its Pods had no readiness probe, so a template change replaced every relay within seconds and peers relaying through them fell back to DERP. The probe helpers move from cmd/k8s-operator to the shared tailscaled reconciler package, and ApplyProxyClass now applies them to the relay container. ProxyGroups use the same code, unchanged. With a readinessProbe set, a PeerRelay rollout waits for each new relay to be Ready before it replaces the next one. Fixes #22670 Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Nurullah Morshed <[email protected]> * k8s-operator: report a PeerRelay ProxyClass whose probes can't run A ProxyGroup reports a ProxyClass that sets probes while its env turns the /livez and /readyz endpoints off as invalid. A PeerRelay skipped the probes without saying so. The check moves to tailscaled.ValidateProbes, shared by both. A PeerRelay whose ProxyClass fails it gets Ready=False with reason ProxyClassInvalid, and nothing is created, as for its other invalid specs. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Nurullah Morshed <[email protected]> * k8s-operator/reconciler/tailscaled: rename probes subtest for tsvet Updates #22670 Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Nurullah Morshed <[email protected]> --------- Signed-off-by: Nurullah Morshed <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>