You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/cmd/k8s-operator
David Bond 42a5262016
cmd/k8s-operator: add multi replica support for recorders (#17864)
This commit adds the `spec.replicas` field to the `Recorder` custom
resource that allows for a highly available deployment of `tsrecorder`
within a kubernetes cluster.

Many changes were required here as the code hard-coded the assumption
of a single replica. This has required a few loops, similar to what we
do for the `Connector` resource to create auth and state secrets. It
was also required to add a check to remove dangling state and auth
secrets should the recorder be scaled down.

Updates: https://github.com/tailscale/tailscale/issues/17965

Signed-off-by: David Bond <davidsbond93@gmail.com>
2 weeks ago
..
deploy cmd/k8s-operator: add multi replica support for recorders (#17864) 2 weeks ago
e2e cmd/k8s-operator: simplify scope of e2e tests (#17076) 3 months ago
generate cmd/k8s-operator: support workload identity federation 4 weeks ago
api-server-proxy-pg.go cmd/k8s-operator: remove Services feature flag detection 4 weeks ago
api-server-proxy-pg_test.go all-kube: create Tailscale Service for HA kube-apiserver ProxyGroup (#16572) 5 months ago
api-server-proxy.go cmd/{k8s-operator,k8s-proxy},kube: use consistent type for auth mode config (#16626) 4 months ago
connector.go cmd/k8s-operator: allow specifying replicas for connectors (#16721) 3 months ago
connector_test.go cmd/k8s-operator: allow specifying replicas for connectors (#16721) 3 months ago
depaware.txt go.mod: bump golang.org/x/crypto (#17907) 2 weeks ago
dnsrecords.go k8s-operator: add IPv6 support for DNS records (#16691) 2 months ago
dnsrecords_test.go k8s-operator: add IPv6 support for DNS records (#16691) 2 months ago
egress-eps.go all: rename variables with lowercase-l/uppercase-I 2 weeks ago
egress-eps_test.go all-kube: create Tailscale Service for HA kube-apiserver ProxyGroup (#16572) 5 months ago
egress-pod-readiness.go all: rename variables with lowercase-l/uppercase-I 2 weeks ago
egress-pod-readiness_test.go cmd/k8s-operator: configure proxies for HA Ingress to run in cert share mode (#15308) 9 months ago
egress-services-readiness.go all: rename variables with lowercase-l/uppercase-I 2 weeks ago
egress-services-readiness_test.go all: rename variables with lowercase-l/uppercase-I 2 weeks ago
egress-services.go all: rename variables with lowercase-l/uppercase-I 2 weeks ago
egress-services_test.go all: rename variables with lowercase-l/uppercase-I 2 weeks ago
ingress-for-pg.go cmd/k8s-operator: remove Services feature flag detection 4 weeks ago
ingress-for-pg_test.go all-kube: create Tailscale Service for HA kube-apiserver ProxyGroup (#16572) 5 months ago
ingress.go cmd/k8s-operator: allow specifying replicas for connectors (#16721) 3 months ago
ingress_test.go cmd/k8s-operator: allow specifying replicas for connectors (#16721) 3 months ago
logger.go cmd/k8s-operator: send operator logs to tailscale (#17110) 2 months ago
metrics_resources.go cmd/k8s-operator: configure proxies for HA Ingress to run in cert share mode (#15308) 9 months ago
nameserver.go cmd/k8s-operator: use stable image for k8s-nameserver (#17985) 2 weeks ago
nameserver_test.go cmd/k8s-operator: use stable image for k8s-nameserver (#17985) 2 weeks ago
nodeport-service-ports.go cmd/k8s-operator, k8s-operator: support Static Endpoints on ProxyGroups (#16115) 5 months ago
nodeport-services-ports_test.go cmd/k8s-operator, k8s-operator: support Static Endpoints on ProxyGroups (#16115) 5 months ago
operator.go cmd/k8s-operator: add multi replica support for recorders (#17864) 2 weeks ago
operator_test.go all: rename variables with lowercase-l/uppercase-I 2 weeks ago
proxyclass.go cmd/k8s-operator, k8s-operator: support Static Endpoints on ProxyGroups (#16115) 5 months ago
proxyclass_test.go cmd/k8s-operator, k8s-operator: support Static Endpoints on ProxyGroups (#16115) 5 months ago
proxygroup.go cmd/k8s-operator: rename 'l' variables (#17700) 1 month ago
proxygroup_specs.go all: rename variables with lowercase-l/uppercase-I 2 weeks ago
proxygroup_test.go cmd/k8s-operator: rename 'l' variables (#17700) 1 month ago
sts.go cmd/tsrecorder: adds sending api level logging to tsrecorder (#16960) 2 months ago
sts_test.go cmd/k8s-operator: rename 'l' variables (#17700) 1 month ago
svc-for-pg.go cmd/k8s-operator: remove Services feature flag detection 4 weeks ago
svc-for-pg_test.go all-kube: create Tailscale Service for HA kube-apiserver ProxyGroup (#16572) 5 months ago
svc.go k8s-operator: reset service status before append (#17120) 3 months ago
testutils_test.go cmd/k8s-operator: allow specifying replicas for connectors (#16721) 3 months ago
tsclient.go cmd/k8s-operator: support workload identity federation 4 weeks ago
tsclient_test.go cmd/k8s-operator: support workload identity federation 4 weeks ago
tsrecorder.go cmd/k8s-operator: add multi replica support for recorders (#17864) 2 weeks ago
tsrecorder_specs.go cmd/k8s-operator: add multi replica support for recorders (#17864) 2 weeks ago
tsrecorder_specs_test.go cmd/k8s-operator: add multi replica support for recorders (#17864) 2 weeks ago
tsrecorder_test.go cmd/k8s-operator: add multi replica support for recorders (#17864) 2 weeks ago