Closed joes closed 3 years ago
Thank you for your message.
Please check Kubernetes official documentation about requiredDuringSchedulingIgnoredDuringExecution: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.21/#podaffinityterm-v1-core
That type does not have the field "weight" since it is not a weighted affinity.
There is an example in Kubernetes official website: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#an-example-of-a-pod-that-uses-pod-affinity
Thanks for your assistance!
Hi!
I attempted to use
requiredDuringSchedulingIgnoredDuringExecution
aspodAntiAffinity
:However, I receive the following error if I apply the above specification:
As far as I can tell this error message is not correct since I have defined
topologyKey: "kubernetes.io/hostname"
.If I change
requiredDuringSchedulingIgnoredDuringExecution
topreferredDuringSchedulingIgnoredDuringExecution
the configuration can be applied just fine (without errors).Thank you for making kubegres and I look forward to getting it up and running!