From 270f9c0f06683c1c275209e068a73b96b882064c Mon Sep 17 00:00:00 2001 From: gitea-admin Date: Sun, 17 May 2026 00:49:45 +0000 Subject: [PATCH] feat: migrate tailscale-operator to OAuth auth mode --- .../tailscale/operator/deployment.yaml | 54 ++++++++++--------- 1 file changed, 30 insertions(+), 24 deletions(-) diff --git a/deployments/tailscale/operator/deployment.yaml b/deployments/tailscale/operator/deployment.yaml index 0e2c87d..2704d57 100644 --- a/deployments/tailscale/operator/deployment.yaml +++ b/deployments/tailscale/operator/deployment.yaml @@ -17,28 +17,34 @@ spec: spec: serviceAccountName: tailscale-operator containers: - - name: operator - image: ghcr.io/tailscale/k8s-operator:v1.78.3 - env: - - name: POD_NAME - valueFrom: - fieldRef: - apiVersion: v1 - fieldPath: metadata.name - - name: POD_NAMESPACE - valueFrom: - fieldRef: - apiVersion: v1 - 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 + - name: operator + image: ghcr.io/tailscale/k8s-operator:v1.78.3 + imagePullPolicy: IfNotPresent + 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 + resources: + requests: + cpu: 100m + memory: 128Mi + limits: + cpu: 500m + memory: 512Mi volumes: - - name: oauth-secret - secret: - secretName: tailscale-operator-secret + - name: oauth-secret + secret: + secretName: tailscale-operator-secret