feat(headscale): let headscale run on the master node like l4-bfl-proxy (#1498)

Co-authored-by: 0x7fffff92 <0x7fffff92@example.com>
This commit is contained in:
0x7fffff92 2025-06-30 21:02:26 +08:00 committed by GitHub
parent cfb54fb974
commit 5df379f286
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -85,6 +85,18 @@ spec:
labels:
app: headscale
spec:
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- preference:
matchExpressions:
- key: kubernetes.io/os
operator: In
values:
- linux
- key: node-role.kubernetes.io/master
operator: Exists
weight: 10
serviceAccountName: tailscale
securityContext:
runAsUser: 1000