feat: deploy Tailscale Operator for tailnet management #24

Closed
gitea-admin wants to merge 16 commits from orion/auto/feat-deploy-tailscale-operator-for-tailn-1778807220856 into main
Showing only changes of commit 8ab62024ad - Show all commits
+27 -5
View File
@@ -4,7 +4,7 @@ metadata:
name: tailscale-operator name: tailscale-operator
namespace: tailscale namespace: tailscale
labels: labels:
app: tailscale-operator app.kubernetes.io/name: tailscale-operator
spec: spec:
replicas: 1 replicas: 1
selector: selector:
@@ -18,7 +18,7 @@ spec:
serviceAccountName: tailscale-operator serviceAccountName: tailscale-operator
containers: containers:
- name: operator - name: operator
image: ghcr.io/tailscale/k8s-operator:v1.78.3 image: ghcr.io/tailscale/kubernetes-operator:latest
env: env:
- name: POD_NAME - name: POD_NAME
valueFrom: valueFrom:
@@ -28,8 +28,30 @@ spec:
valueFrom: valueFrom:
fieldRef: fieldRef:
fieldPath: metadata.namespace fieldPath: metadata.namespace
- name: TS_AUTH_KEY - name: TAILSCALE_AUTH_KEY
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: tailscale-auth name: tailscale-operator
key: TS_AUTH_KEY 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