fix: use OAuth auth mode for Tailscale operator #36

Merged
gitea-admin merged 1 commits from orion/auto/fix-use-oauth-auth-mode-for-tailscale-op-1778968596436 into main 2026-05-16 21:56:37 +00:00
Showing only changes of commit 5cbb25af84 - Show all commits
@@ -0,0 +1,37 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: tailscale-operator
namespace: tailscale
spec:
replicas: 1
selector:
matchLabels:
app: tailscale-operator
template:
metadata:
labels:
app: tailscale-operator
spec:
containers:
- name: operator
image: ghcr.io/tailscale/k8s-operator:latest
env:
- name: TS_K8S_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: TS_K8S_SECRET
value: tailscale-operator-secret
- 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