mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-20 00:31:17 -08:00
Proxies now serve /livez and /readyz, but nothing points Kubernetes probes at them. This adds livenessProbe and readinessProbe fields to the ProxyClass Tailscale container, each off unless set, with tunable timing (older proxy images don't serve the endpoints, so a probe would fail against them), and wires them into ProxyGroup proxies. A ProxyGroup is rejected if its ProxyClass sets probes but its env would leave the endpoints unreachable, such as TS_ENABLE_HEALTH_CHECK=false, TS_LOCAL_ADDR_PORT on loopback, or the deprecated TS_HEALTHCHECK_ADDR_PORT. Probes follow a custom TS_LOCAL_ADDR_PORT port, and liveness gets a 5s timeout by default, as a restart drops traffic that a slow tailscaled still carries. Updates tailscale/corp#38175 Signed-off-by: chaosinthecrd <[email protected]>