Files
tailscale/cmd/k8s-operator/deploy
Nurullah MorshedandClaude Opus 5.5 81fe9507ef cmd/k8s-operator,k8s-operator: apply ProxyClass probes to PeerRelay pods (#22798)
* 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]>
2026-12-04 10:54:35 +00:00
..

Tailscale Kubernetes operator deployment manifests

./cmd/k8s-operator/deploy contain various Tailscale Kubernetes operator deployment manifests.

Helm chart

./cmd/k8s-operator/deploy/chart contains Tailscale operator Helm chart templates. The chart templates are also used to generate the static manifest, so developers must ensure that any changes applied to the chart have been propagated to the static manifest by running go generate tailscale.com/cmd/k8s-operator

Static manifests

./cmd/k8s-operator/deploy/manifests/operator.yaml is a static manifest for the operator generated from the Helm chart templates for the operator.