fix(headscale): Make the Affinity Rule Strict (#1540)

* fix(headscale): Make the Affinity Rule Strict

* fix(headscale): make ci happy

---------

Co-authored-by: 0x7fffff92 <0x7fffff92@example.com>
This commit is contained in:
0x7fffff92 2025-07-14 23:47:25 +08:00 committed by GitHub
parent ee567c270c
commit 2af86e161a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -87,16 +87,15 @@ spec:
spec:
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- preference:
matchExpressions:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/os
operator: In
values:
- linux
- key: node-role.kubernetes.io/master
- key: node-role.kubernetes.io/control-plane
operator: Exists
weight: 10
serviceAccountName: tailscale
securityContext:
runAsUser: 1000