mirror of
https://github.com/beclab/Olares
synced 2026-05-24 01:08:23 +00:00
fix: make the affinity rule strict for tailscale (#1606)
fix: requires tailscale and headscale to run on the same node Co-authored-by: 0x7fffff92 <0x7fffff92@example.com>
This commit is contained in:
parent
8be967ebf3
commit
eb774e6e06
1 changed files with 5 additions and 7 deletions
|
|
@ -260,13 +260,11 @@ spec:
|
|||
spec:
|
||||
affinity:
|
||||
podAffinity:
|
||||
preferredDuringSchedulingIgnoredDuringExecution:
|
||||
- podAffinityTerm:
|
||||
labelSelector:
|
||||
matchLabels:
|
||||
app: headscale
|
||||
topologyKey: kubernetes.io/hostname
|
||||
weight: 100
|
||||
requiredDuringSchedulingIgnoredDuringExecution:
|
||||
- labelSelector:
|
||||
matchLabels:
|
||||
app: headscale
|
||||
topologyKey: kubernetes.io/hostname
|
||||
hostNetwork: true
|
||||
dnsPolicy: ClusterFirstWithHostNet
|
||||
containers:
|
||||
|
|
|
|||
Loading…
Reference in a new issue