Skip to content

Commit

Permalink
nodefinder improvement for hansel load balancing
Browse files Browse the repository at this point in the history
Signed-off-by: David Young <davidy@funkypenguin.co.nz>
  • Loading branch information
funkypenguin committed Feb 12, 2025
1 parent 8592d1f commit 886ff7a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion charts/myprecious/templates/deployment-nodefinder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,11 @@ spec:
operator: In
values:
- "true"
{{ if or .Values.hobbit.enabled .Values.ranger.enabled .Values.halfling.enabled .Values.nazgul.enabled }}
# fill up the gretels
podAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 50
- weight: 1
podAffinityTerm:
labelSelector:
matchExpressions:
Expand All @@ -48,6 +50,7 @@ spec:
- nodefinder
topologyKey: "kubernetes.io/hostname"
namespaceSelector: {} # i.e., in the absense of any better signal, pick a node which already has zurg on it
{{ end }}
containers:
- name: "nodefinder"
command: [ "/usr/bin/sleep" ]
Expand Down

0 comments on commit 886ff7a

Please sign in to comment.