Compare commits

..

16 Commits

Author SHA1 Message Date
gitea-admin 91b3ec7be4 chore: remove files from wrong root tailscale/ dir
Validate Manifests / validate (pull_request) Has been cancelled
2026-05-15 02:01:09 +00:00
gitea-admin 8ee3ca36c5 chore: remove files from wrong root tailscale/ dir
Validate Manifests / validate (pull_request) Has been cancelled
2026-05-15 02:01:09 +00:00
gitea-admin 74b9664078 chore: remove files from wrong root tailscale/ dir
Validate Manifests / validate (pull_request) Has been cancelled
2026-05-15 02:01:08 +00:00
gitea-admin 534c11dfa2 chore: remove files from wrong root tailscale/ dir
Validate Manifests / validate (pull_request) Has been cancelled
2026-05-15 02:01:08 +00:00
gitea-admin 8a5d4d761e chore: remove files from wrong root tailscale/ dir
Validate Manifests / validate (pull_request) Has been cancelled
2026-05-15 02:01:07 +00:00
gitea-admin 5383783db1 chore: remove files from wrong root tailscale/ dir 2026-05-15 02:01:07 +00:00
gitea-admin a90d4fbd4d chore: remove files from wrong root tailscale/ dir 2026-05-15 02:01:06 +00:00
gitea-admin 751b4c80f2 chore: remove files from wrong root tailscale/ dir 2026-05-15 02:01:06 +00:00
gitea-admin 711be643ff fix: relocate operator manifests to deployments/tailscale/operator/
Validate Manifests / validate (pull_request) Has been cancelled
2026-05-15 02:00:49 +00:00
gitea-admin 36b95768e9 fix: relocate operator manifests to deployments/tailscale/operator/ 2026-05-15 02:00:49 +00:00
gitea-admin 8ab62024ad fix: relocate operator manifests to deployments/tailscale/operator/ 2026-05-15 02:00:48 +00:00
gitea-admin cca85815d2 fix: remove non-existent OAuth credential refs, auth key only
Validate Manifests / validate (pull_request) Has been cancelled
2026-05-15 01:50:17 +00:00
gitea-admin 9691ba2827 fix: correct ExternalSecret path, name, and key to match deployment
Validate Manifests / validate (pull_request) Has been cancelled
2026-05-15 01:50:07 +00:00
gitea-admin 63f92ade28 feat: deploy Tailscale Operator for tailnet management
Validate Manifests / validate (pull_request) Has been cancelled
2026-05-15 01:07:01 +00:00
gitea-admin f925eae344 feat: deploy Tailscale Operator for tailnet management 2026-05-15 01:07:01 +00:00
gitea-admin 73a933a41a feat: deploy Tailscale Operator for tailnet management 2026-05-15 01:07:01 +00:00
25 changed files with 248 additions and 147 deletions
-6
View File
@@ -1,6 +0,0 @@
apiVersion: v1
kind: Namespace
metadata:
name: apps
labels:
name: apps
@@ -0,0 +1,45 @@
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.0
env:
- name: TS_AUTHKEY
valueFrom:
secretKeyRef:
name: tailscale-auth
key: TS_AUTH_KEY
- name: DEPLOYMENT_TYPE
value: "k8s"
ports:
- containerPort: 8080
name: http-metrics
readinessProbe:
httpGet:
path: /metrics
port: http-metrics
initialDelaySeconds: 10
periodSeconds: 15
resources:
requests:
cpu: 50m
memory: 64Mi
limits:
cpu: 200m
memory: 256Mi
+33
View File
@@ -0,0 +1,33 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: tailscale-operator
namespace: tailscale
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: tailscale-operator
rules:
- apiGroups: [""]
resources: ["secrets", "services", "endpoints", "namespaces", "nodes"]
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
- apiGroups: ["apps"]
resources: ["deployments", "statefulsets", "daemonsets"]
verbs: ["get", "list", "watch", "update", "patch"]
- apiGroups: ["tailscale.com"]
resources: ["*"]
verbs: ["*"]
---
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
@@ -0,0 +1,14 @@
apiVersion: external-secrets.io/v1
kind: ClusterSecretStore
metadata:
name: orion-vault
namespace: vault
spec:
provider:
vault:
server: "http://vault.vault.svc.cluster.local:8200"
path: "secret"
auth:
agentAuth:
path: "kubernetes"
namespace: "vault"
+19
View File
@@ -0,0 +1,19 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: tailscale-operator
labels:
app: tailscale-operator
rules:
- apiGroups: [""]
resources: ["pods", "services", "secrets", "configmaps"]
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
- apiGroups: ["apps"]
resources: ["deployments", "statefulsets"]
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
- apiGroups: ["discovery.k8s.io"]
resources: ["endpointslices"]
verbs: ["get", "list", "watch"]
- apiGroups: ["coordination.k8s.io"]
resources: ["leases"]
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
@@ -0,0 +1,14 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: tailscale-operator
labels:
app: tailscale-operator
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: tailscale-operator
subjects:
- kind: ServiceAccount
name: tailscale-operator
namespace: apps
+9
View File
@@ -0,0 +1,9 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: tailscale-operator
namespace: apps
labels:
app: tailscale-operator
data:
TS_KUBE_OBJECT_STORE: "true"
@@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: tailscale-operator
namespace: tailscale
namespace: apps
labels:
app: tailscale-operator
spec:
@@ -18,8 +18,13 @@ spec:
serviceAccountName: tailscale-operator
containers:
- name: operator
image: ghcr.io/tailscale/k8s-operator:v1.78.3
image: ghcr.io/tailscale/k8s-operator:1.72.0
env:
- name: TS_AUTH_KEY
valueFrom:
secretKeyRef:
name: tailscale-auth
key: TS_AUTH_KEY
- name: POD_NAME
valueFrom:
fieldRef:
@@ -28,15 +33,10 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: TS_CLIENT_ID_FILE
value: /etc/tailscale/oauth/client-id
- name: TS_CLIENT_SECRET_FILE
value: /etc/tailscale/oauth/client-secret
volumeMounts:
- name: oauth-secret
mountPath: /etc/tailscale/oauth
readOnly: true
volumes:
- name: oauth-secret
secret:
secretName: tailscale-operator-secret
resources:
requests:
cpu: 50m
memory: 64Mi
limits:
cpu: 100m
memory: 128Mi
+4 -4
View File
@@ -12,7 +12,7 @@ spec:
name: tailscale-auth
creationPolicy: Owner
data:
- secretKey: TS_AUTH_KEY
remoteRef:
key: Talos Cluster/tailscale
property: TS_AUTH_KEY
- secretKey: TS_AUTH_KEY
remoteRef:
key: tailscale
property: TS_AUTH_KEY
@@ -0,0 +1,18 @@
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: tailscale-operator
namespace: tailscale
spec:
refreshInterval: 1h
secretStoreRef:
name: orion-vault
kind: ClusterSecretStore
target:
name: tailscale-operator
creationPolicy: Owner
data:
- secretKey: auth-key
remoteRef:
key: secret/Talos Cluster/tailscale
property: TS_AUTH_KEY
+3 -1
View File
@@ -1,4 +1,6 @@
apiVersion: v1
kind: Namespace
metadata:
name: tailscale
name: apps
labels:
name: apps
+29 -15
View File
@@ -4,7 +4,7 @@ metadata:
name: tailscale-operator
namespace: tailscale
labels:
app: tailscale-operator
app.kubernetes.io/name: tailscale-operator
spec:
replicas: 1
selector:
@@ -18,8 +18,7 @@ spec:
serviceAccountName: tailscale-operator
containers:
- name: operator
image: ghcr.io/tailscale/k8s-operator:v1.78.3
imagePullPolicy: IfNotPresent
image: ghcr.io/tailscale/kubernetes-operator:latest
env:
- name: POD_NAME
valueFrom:
@@ -29,15 +28,30 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: CLIENT_ID_FILE
value: /etc/tailscale/oauth/client-id
- name: CLIENT_SECRET_FILE
value: /etc/tailscale/oauth/client-secret
volumeMounts:
- name: oauth-secret
mountPath: /etc/tailscale/oauth
readOnly: true
volumes:
- name: oauth-secret
secret:
secretName: tailscale-operator-secret
- name: TAILSCALE_AUTH_KEY
valueFrom:
secretKeyRef:
name: tailscale-operator
key: auth-key
ports:
- name: http
containerPort: 8080
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 250m
memory: 256Mi
readinessProbe:
httpGet:
path: /healthz
port: 8080
initialDelaySeconds: 5
periodSeconds: 10
livenessProbe:
httpGet:
path: /healthz
port: 8080
initialDelaySeconds: 10
periodSeconds: 30
@@ -1,22 +0,0 @@
apiVersion: external-secrets.io/v1
kind: ExternalSecret
metadata:
name: tailscale-operator-secret
namespace: tailscale
spec:
refreshInterval: 1h
secretStoreRef:
name: orion-vault
kind: ClusterSecretStore
target:
name: tailscale-operator-secret
creationPolicy: Owner
data:
- secretKey: client-id
remoteRef:
key: tailscale/operator
property: CLIENT_ID_FILE
- secretKey: client-secret
remoteRef:
key: tailscale/operator
property: CLIENT_SECRET_FILE
+39
View File
@@ -0,0 +1,39 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: tailscale-operator
namespace: tailscale
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: tailscale-operator
rules:
- apiGroups: [""]
resources: ["secrets", "configmaps"]
verbs: ["create", "delete", "get", "list", "patch", "update", "watch", "patch", "list"]
- apiGroups: [""]
resources: ["pods", "services"]
verbs: ["create", "delete", "get", "list", "patch", "update", "watch", "patch", "list"]
- apiGroups: ["apps"]
resources: ["deployments", "daemonsets"]
verbs: ["create", "delete", "get", "list", "patch", "update", "watch", "patch", "list"]
- apiGroups: ["operator.tailscale.com"]
resources: ["*"]
verbs: ["create", "delete", "get", "list", "patch", "update", "watch", "patch", "list"]
- apiGroups: ["coordination.k8s.io"]
resources: ["leases"]
verbs: ["create", "delete", "get", "list", "patch", "update", "watch"]
---
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
@@ -0,0 +1,7 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: tailscale-operator
namespace: apps
labels:
app: tailscale-operator
-43
View File
@@ -1,43 +0,0 @@
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: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: CLIENT_ID_FILE
value: /etc/tailscale/operator/client-id
- name: CLIENT_SECRET_FILE
value: /etc/tailscale/operator/client-secret
volumeMounts:
- name: operator-secret
mountPath: /etc/tailscale/operator
readOnly: true
resources: {}
volumes:
- name: operator-secret
secret:
secretName: tailscale-operator-secret
-42
View File
@@ -1,42 +0,0 @@
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: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: TS_CLIENT_ID_FILE
value: /etc/tailscale/oauth/client-id
- name: TS_CLIENT_SECRET_FILE
value: /etc/tailscale/oauth/client-secret
volumeMounts:
- name: oauth-secret
mountPath: /etc/tailscale/oauth
readOnly: true
volumes:
- name: oauth-secret
secret:
secretName: tailscale-operator-secret