mirror of
https://github.com/tailscale/tailscale.git
synced 2026-10-09 11:52:00 -04:00
Previously ProxyClass spec.staticEndpoints was only implemented for ProxyGroups and silently ignored when the ProxyClass was referenced by a Connector. Extract the NodePort Service provisioning, port allocation, and node ExternalIP discovery logic shared with ProxyGroup into a new k8s-operator/reconciler/staticendpoints package, and wire it into the StatefulSet reconciler so that each Connector replica gets a per-pod NodePort Service, the discovered endpoints are written to its tailscaled config as static endpoints, and tailscaled listens on the Services' target port via the PORT env var. Also reconcile Connectors on Node changes, clean up NodePort Services on scale down, Connector deletion, and when static endpoints are removed, and surface the endpoints in the Connector's device status. Add e2e tests for static endpoints on both Connectors and ProxyGroups. They verify the per-replica NodePort Services, the PORT env var, the endpoints reported in status and advertised to control, and the cleanup on scale down and on removal of the static endpoints configuration. The tests skip on clusters whose Nodes have no ExternalIP addresses, such as kind. Fixes #18819 Change-Id: Ia134916062471e6c0088692834257aafabd0e713 Signed-off-by: David Bond <davidsbond93@gmail.com>
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.