feat: migrate tailscale-operator to OAuth auth mode #42

Closed
gitea-admin wants to merge 1 commits from orion/auto/feat-migrate-tailscale-operator-to-oauth-1778978915769 into main
Showing only changes of commit f7fb6098fa - Show all commits
+18 -27
View File
@@ -15,41 +15,32 @@ spec:
labels:
app: tailscale-operator
spec:
serviceAccountName: tailscale-operator
containers:
- name: operator
image: ghcr.io/tailscale/operator:latest
ports:
- containerPort: 8080
name: http-metrics
protocol: TCP
image: ghcr.io/tailscale/k8s-operator:v1.78.3
imagePullPolicy: IfNotPresent
env:
- name: TS_KUBE_NAMESPACE
- name: POD_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.name
- name: POD_NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
envFrom:
- secretRef:
name: 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-config
mountPath: /etc/tailscale/oauth
- name: oauth-secret
mountPath: /etc/tailscale/oauth/
readOnly: true
resources: {}
volumes:
- name: oauth-config
- name: oauth-secret
secret:
secretName: tailscale-operator-secret
---
apiVersion: v1
kind: Service
metadata:
name: tailscale-operator
namespace: tailscale
labels:
app: tailscale-operator
spec:
ports:
- port: 8080
name: http-metrics
targetPort: http-metrics
selector:
app: tailscale-operator