Skip to content

Commit

Permalink
Add node affinity
Browse files Browse the repository at this point in the history
  • Loading branch information
BjoernPetersen committed Sep 18, 2024
1 parent b3cc0bc commit 65e501c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions chart/templates/pypiserver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,15 @@ spec:
labels:
app: pypi
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: bjoernpetersen.net/local-storage
operator: In
values:
- "true"
volumes:
- name: credentials
secret:
Expand Down

0 comments on commit 65e501c

Please sign in to comment.