mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-22 04:32:40 +09:00
For kube-apiserver ProxyGroups with static endpoints, the operator sets PORT on the k8s-proxy container to the targetPort of the NodePort Services behind the advertised endpoints. k8s-proxy never read PORT, so tsnet listened on a random port and traffic to the static endpoints was forwarded to a port with nothing listening. Peers stayed on DERP. This fixes this by parsing PORT and setting it as tsnet.Server.Port. Thanks to @icheishvili (#18841) and @rquitales (#21716), whose changes this is based on. Updates #21714 Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>