foosinn
Re:Ask HN: Have You Left Kubernetes?
on Monday August 01, 2022 @01:19PM (#32309226)
you can set hostAffinities on PersistentVolumes.
nodeAffinity:
required:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- <hostname>
this ensures that your workload will be rescheduled on the matching node