Hacker News new | ask | show | jobs
by foosinn 1418 days ago
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