Fix Tailscale operator HelmRelease for v1.96.x + PodSecurity

- Bump chart version 1.86.x -> 1.96.x
- Migrate operator: -> operatorConfig: (new chart structure)
- Disable OAuth/OIDC to use existing authkey secret
- Add securityContext for restricted:latest PodSecurity policy
- Add podSecurityContext.runAsNonRoot
- Drop ALL capabilities, disable privilege escalation
- Add RuntimeDefault seccomp profile
This commit is contained in:
sirius0xdev 2026-05-04 01:41:50 +00:00
parent bf4a2b260f
commit 116ac9ca48

View file

@ -9,7 +9,7 @@ spec:
chart: chart:
spec: spec:
chart: tailscale-operator chart: tailscale-operator
version: "1.86.x" version: "1.96.x"
sourceRef: sourceRef:
kind: HelmRepository kind: HelmRepository
name: tailscale name: tailscale
@ -23,19 +23,26 @@ spec:
crds: CreateReplace crds: CreateReplace
values: values:
# Operator configuration # Operator configuration
operator: operatorConfig:
# Tag to use for pods created by the operator (e.g., tailnet) # Tag to use for pods created by the operator (e.g., tailnet)
tags: [] hostname: "tailscale-operator"
# Auth key from secret - PLACEHOLDER, replace with real key # Auth key via existing secret
# Create secret: kubectl create secret generic tailscale-operator-authkey \ useOAuth: false
# -n tailscale --from-literal=authkey=tskey-abc123... \ useOIDC: false
# --dry-run=client -o yaml | kubectl apply -n tailscale # Concurrency
operatorSecretRef: tailscaleOperator:
name: tailscale-operator-authkey setConcurrentResourceReconciles: 2
key: authkey # PodSecurity "restricted:latest" compliance
logFile: "/var/log/tailscale.log" podSecurityContext:
# Don't block pod startup if Tailscale auth fails runAsNonRoot: true
waitForLinkLocal: false securityContext:
allowPrivilegeEscalation: false
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
capabilities:
drop:
- ALL
# Disable webhook (optional) # Disable webhook (optional)
webhook: webhook:
enabled: false enabled: false