feat: add Tailscale operator and DaemonSet #4

Merged
gitea-admin merged 5 commits from orion/auto/feat-add-tailscale-operator-and-daemonse-1778347811370 into main 2026-05-09 17:36:55 +00:00
Showing only changes of commit 81fc72b3eb - Show all commits
+56
View File
@@ -0,0 +1,56 @@
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: tailscaled
namespace: tailscale
labels:
app: tailscale
spec:
selector:
matchLabels:
app: tailscale
template:
metadata:
labels:
app: tailscale
spec:
hostNetwork: true
serviceAccountName: tailscale
containers:
- name: tailscale
image: tailscale/tailscale:latest
env:
- name: TS_KUBE_SECRET
value: "tailscale-auth"
- name: TS_STATE_DIR
value: "/var/lib/tailscale"
envFrom:
- secretRef:
name: tailscale-auth
volumeMounts:
- name: var-lib-tailscale
mountPath: /var/lib/tailscale
- name: tailscale-tmp
mountPath: /tmp
- name: dev-tun
mountPath: /dev/net/tun
readOnly: true
securityContext:
privileged: true
capabilities:
add: ["NET_ADMIN", "NET_RAW"]
resources:
requests:
cpu: 50m
memory: 100Mi
limits:
memory: 200Mi
volumes:
- name: var-lib-tailscale
persistentVolumeClaim:
claimName: tailscale
- name: tailscale-tmp
emptyDir: {}
- name: dev-tun
hostPath:
path: /dev/net/tun