Affinity📜
Pod constraints for MinIO operator is implemented following the kubernetes affinity documentation. The MinIO Operator Pod can be constrained using nodeSelector or Affinity/Anti-affinity feature
nodeSelector📜
In the values.yaml set nodeSelector
as such:
nodeSelector:
<key>: <values>
nodeAffinity📜
In the values.yaml
, set nodeAffinity
as such:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/e2e-az-name
operator: In
values:
- e2e-az1
- e2e-az2
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 1
preference:
matchExpressions:
- key: another-node-label-key
operator: In
values:
- another-node-label-value
podAffinity📜
In the values.yaml
, set Pod affinity/anti-affinity like:
affinity:
podAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: security
operator: In
values:
- S1
topologyKey: topology.kubernetes.io/zone
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: security
operator: In
values:
- S2
topologyKey: topology.kubernetes.io/zone
Last update:
2022-02-28 by Branden Cobb