tailscale/cmd/k8s-operator
Irbe Krumina df8f40905b
cmd/k8s-operator,k8s-operator: optionally serve tailscaled metrics on Pod IP (#11699)
Adds a new .spec.metrics field to ProxyClass to allow users to optionally serve
client metrics (tailscaled --debug) on <Pod-IP>:9001.
Metrics cannot currently be enabled for proxies that egress traffic to tailnet
and for Ingress proxies with tailscale.com/experimental-forward-cluster-traffic-via-ingress annotation
(because they currently forward all cluster traffic to their respective backends).

The assumption is that users will want to have these metrics enabled
continuously to be able to monitor proxy behaviour (as opposed to enabling
them temporarily for debugging). Hence we expose them on Pod IP to make it
easier to consume them i.e via Prometheus PodMonitor.

Updates tailscale/tailscale#11292

Signed-off-by: Irbe Krumina <irbe@tailscale.com>
2024-04-26 08:25:06 +01:00
..
deploy cmd/k8s-operator,k8s-operator: optionally serve tailscaled metrics on Pod IP (#11699) 2024-04-26 08:25:06 +01:00
generate Revert "cmd/{k8s-nameserver,k8s-operator},k8s-operator: add a kube nameserver, make operator deploy it (#11017)" (#11669) 2024-04-08 21:31:52 +01:00
connector_test.go cmd/k8s-operator,ipn/conf.go: fix --accept-routes for proxies (#11453) 2024-03-19 14:54:17 +00:00
connector.go cmd/k8s-operator,k8s-operator: proxy configuration mechanism via a new ProxyClass custom resource (#11074) 2024-02-13 05:27:54 +00:00
ingress_test.go cmd/k8s-operator,ipn/conf.go: fix --accept-routes for proxies (#11453) 2024-03-19 14:54:17 +00:00
ingress.go cmd/k8s-operator,k8s-operator: proxy configuration mechanism via a new ProxyClass custom resource (#11074) 2024-02-13 05:27:54 +00:00
operator_test.go cmd{containerboot,k8s-operator},util/linuxfw: support ExternalName Services (#11802) 2024-04-23 17:30:00 +01:00
operator.go cmd/k8s-operator: correctly determine cluster domain (#11512) 2024-04-19 16:49:46 +01:00
proxy_test.go all: make use of ctxkey everywhere (#10846) 2024-01-16 13:56:23 -08:00
proxy.go all: make use of ctxkey everywhere (#10846) 2024-01-16 13:56:23 -08:00
proxyclass_test.go cmd/k8s-operator,k8s-operator: allow users to configure proxy env vars via ProxyClass (#11743) 2024-04-15 17:24:59 +01:00
proxyclass.go cmd/k8s-operator,k8s-operator: allow users to configure proxy env vars via ProxyClass (#11743) 2024-04-15 17:24:59 +01:00
sts_test.go cmd/k8s-operator,k8s-operator: optionally serve tailscaled metrics on Pod IP (#11699) 2024-04-26 08:25:06 +01:00
sts.go cmd/k8s-operator,k8s-operator: optionally serve tailscaled metrics on Pod IP (#11699) 2024-04-26 08:25:06 +01:00
svc.go cmd{containerboot,k8s-operator},util/linuxfw: support ExternalName Services (#11802) 2024-04-23 17:30:00 +01:00
testutils_test.go cmd/k8s-operator,k8s-operator: optionally serve tailscaled metrics on Pod IP (#11699) 2024-04-26 08:25:06 +01:00