From 01eb2ad04deb368dd334e99b7ff4326b3eb67d44 Mon Sep 17 00:00:00 2001 From: gitea-admin Date: Sun, 10 May 2026 12:21:25 +0000 Subject: [PATCH 1/4] feat: deploy Tailscale Operator with auth secret --- .../tailscale/operator/deployment.yaml | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 deployments/tailscale/operator/deployment.yaml diff --git a/deployments/tailscale/operator/deployment.yaml b/deployments/tailscale/operator/deployment.yaml new file mode 100644 index 0000000..38be142 --- /dev/null +++ b/deployments/tailscale/operator/deployment.yaml @@ -0,0 +1,50 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: tailscale-operator + namespace: tailscale + labels: + app: tailscale-operator +spec: + replicas: 1 + selector: + matchLabels: + app: tailscale-operator + template: + metadata: + labels: + app: tailscale-operator + spec: + serviceAccountName: tailscale-operator + containers: + - name: operator + image: ghcr.io/tailscale/k8s-operator:v1.78.3 + env: + - name: TS_AUTH_KEY + valueFrom: + secretKeyRef: + name: tailscale-auth + key: TS_AUTH_KEY + ports: + - containerPort: 8080 + name: metrics + protocol: TCP + resources: + requests: + cpu: 50m + memory: 64Mi + limits: + cpu: 200m + memory: 256Mi + readinessProbe: + httpGet: + path: /metrics + port: 8080 + initialDelaySeconds: 10 + periodSeconds: 10 + livenessProbe: + httpGet: + path: /metrics + port: 8080 + initialDelaySeconds: 15 + periodSeconds: 20 From 2a92c5a371bbb646ef9941f8219e99b03fd01686 Mon Sep 17 00:00:00 2001 From: gitea-admin Date: Sun, 10 May 2026 12:21:26 +0000 Subject: [PATCH 2/4] feat: deploy Tailscale Operator with auth secret --- deployments/tailscale/operator/clusterrole.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 deployments/tailscale/operator/clusterrole.yaml diff --git a/deployments/tailscale/operator/clusterrole.yaml b/deployments/tailscale/operator/clusterrole.yaml new file mode 100644 index 0000000..a7782e3 --- /dev/null +++ b/deployments/tailscale/operator/clusterrole.yaml @@ -0,0 +1,17 @@ +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + name: tailscale-operator +rules: + - apiGroups: [""] + resources: ["secrets", "configmaps", "services", "pods", "endpoints"] + verbs: ["get", "list", "watch", "create", "update", "patch", "delete"] + - apiGroups: ["apps"] + resources: ["deployments", "statefulsets", "daemonsets"] + verbs: ["get", "list", "watch", "create", "update", "patch", "delete"] + - apiGroups: ["networking.k8s.io"] + resources: ["ingresses"] + verbs: ["get", "list", "watch", "create", "update", "patch", "delete"] + - apiGroups: ["tailscale.com"] + resources: ["*"] + verbs: ["get", "list", "watch", "create", "update", "patch", "delete"] From 910aae7b46b56ab2ca7f98a7ea53269e90622416 Mon Sep 17 00:00:00 2001 From: gitea-admin Date: Sun, 10 May 2026 12:21:26 +0000 Subject: [PATCH 3/4] feat: deploy Tailscale Operator with auth secret --- .../tailscale/operator/clusterrolebinding.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 deployments/tailscale/operator/clusterrolebinding.yaml diff --git a/deployments/tailscale/operator/clusterrolebinding.yaml b/deployments/tailscale/operator/clusterrolebinding.yaml new file mode 100644 index 0000000..b2a8476 --- /dev/null +++ b/deployments/tailscale/operator/clusterrolebinding.yaml @@ -0,0 +1,12 @@ +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + name: tailscale-operator +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: tailscale-operator +subjects: + - kind: ServiceAccount + name: tailscale-operator + namespace: tailscale From c7bdc4a4ac2ac1f1f44f3a6f73cbf0b9ff13c7d8 Mon Sep 17 00:00:00 2001 From: gitea-admin Date: Sun, 10 May 2026 12:21:26 +0000 Subject: [PATCH 4/4] feat: deploy Tailscale Operator with auth secret --- deployments/tailscale/operator/serviceaccount.yaml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 deployments/tailscale/operator/serviceaccount.yaml diff --git a/deployments/tailscale/operator/serviceaccount.yaml b/deployments/tailscale/operator/serviceaccount.yaml new file mode 100644 index 0000000..0798ebd --- /dev/null +++ b/deployments/tailscale/operator/serviceaccount.yaml @@ -0,0 +1,7 @@ +apiVersion: v1 +kind: ServiceAccount +metadata: + name: tailscale-operator + namespace: tailscale + labels: + app: tailscale-operator