spec.affinity.podAntiAffinity
Revision as of 07:19, 25 July 2024 by Welcome (talk | contribs) (Welcome moved page Spec.affinity.PodAntiAffinity to Spec.affinity.podAntiAffinity)
spec.affinity.podAntiAffinity
Elasticsearch example, official doc: [1]
apiVersion: elasticsearch.k8s.elastic.co/v1 kind: Elasticsearch metadata: name: quickstart spec: version: 8.4.3 nodeSets: - name: default count: 3 podTemplate: spec: affinity: podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - weight: 100 podAffinityTerm: labelSelector: matchLabels: elasticsearch.k8s.elastic.co/cluster-name: quickstart topologyKey: kubernetes.io/hostname
Related
See also
- Kubernetes pod affinity and anti affinity, Kubernetes Node Affinity,
default-scheduler, affinity:, NodeAffinity, spec.affinity.podAntiAffinity
Advertising: