tailscale/cmd/k8s-operator
Irbe Krumina 3af0f526b8
cmd{containerboot,k8s-operator},util/linuxfw: support ExternalName Services (#11802)
* cmd/containerboot,util/linuxfw: support proxy backends specified by DNS name

Adds support for optionally configuring containerboot to proxy
traffic to backends configured by passing TS_EXPERIMENTAL_DEST_DNS_NAME env var
to containerboot.
Containerboot will periodically (every 10 minutes) attempt to resolve
the DNS name and ensure that all traffic sent to the node's
tailnet IP gets forwarded to the resolved backend IP addresses.

Currently:
- if the firewall mode is iptables, traffic will be load balanced
accross the backend IP addresses using round robin. There are
no health checks for whether the IPs are reachable.
- if the firewall mode is nftables traffic will only be forwarded
to the first IP address in the list. This is to be improved.

* cmd/k8s-operator: support ExternalName Services

 Adds support for exposing endpoints, accessible from within
a cluster to the tailnet via DNS names using ExternalName Services.
This can be done by annotating the ExternalName Service with
tailscale.com/expose: "true" annotation.
The operator will deploy a proxy configured to route tailnet
traffic to the backend IPs that service.spec.externalName
resolves to. The backend IPs must be reachable from the operator's
namespace.

Updates tailscale/tailscale#10606

Signed-off-by: Irbe Krumina <irbe@tailscale.com>
2024-04-23 17:30:00 +01:00
..
deploy cmd/k8s-operator,k8s-operator: document tailscale.com Custom Resource Definitions better. (#11665) 2024-04-16 17:52:10 +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: allow users to configure proxy env vars via ProxyClass (#11743) 2024-04-15 17:24:59 +01:00
sts.go cmd{containerboot,k8s-operator},util/linuxfw: support ExternalName Services (#11802) 2024-04-23 17:30:00 +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{containerboot,k8s-operator},util/linuxfw: support ExternalName Services (#11802) 2024-04-23 17:30:00 +01:00