kube-arangodb icon indicating copy to clipboard operation
kube-arangodb copied to clipboard

Allow TopologyKey for anti-affinity rule to be changed

Open 345paul opened this issue 5 years ago • 0 comments

The topology key as set in this code (https://github.com/arangodb/kube-arangodb/blob/master/pkg/util/k8sutil/affinity.go) is hardcoded to use the label kubernetes.io/hostname.

It would be good to be able to have the option to set the value failure-domain.beta.kubernetes.io/zone so that the Arango pods are striped across availability zones as well as nodes, as described here: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#inter-pod-affinity-and-anti-affinity-beta-feature

345paul avatar May 02 '19 18:05 345paul