anti-affinity-rules.yaml 690 B

1234567891011121314151617181920212223242526
  1. acceptLicenseAgreement: "yes"
  2. neo4jPassword: "mySecretPassword"
  3. core:
  4. standalone: false
  5. numberOfServers: 3
  6. readReplica:
  7. numberOfServers: 1
  8. # Attach a custom label we can use for pod repulsion
  9. podLabels:
  10. clusterLabel: "affinity-test"
  11. # Kubernetes documentation describing what this is about:
  12. # https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
  13. affinity:
  14. podAntiAffinity:
  15. requiredDuringSchedulingIgnoredDuringExecution:
  16. - labelSelector:
  17. matchExpressions:
  18. - key: clusterLabel
  19. operator: In
  20. values:
  21. - affinity-test
  22. topologyKey: "kubernetes.io/hostname"