These configurations are optional and should only be applied if required by the client’s environment. They allow you to control how Kubernetes schedules and distributes pods within the cluster.
Tolerations allow pods to run on nodes with specific taints, defining the conditions under which they can be scheduled.
Each toleration block uses four variables: KEY, OPERATOR, VALUE, and EFFECT. Up to 10 optional blocks can be defined.
TOLERATIONS_1_KEY: Taint keyTOLERATIONS_1_OPERATOR: Operator (Equal or Exists)TOLERATIONS_1_VALUE: Associated valueTOLERATIONS_1_EFFECT: Effect (NoSchedule or PreferNoSchedule)Note: leave these variables empty if tolerations are not required.
Node Affinity controls scheduling preferences based on node labels.
Enable it by setting ENABLE_NODE_AFFINITY=true.
NODE_AFFINITY_TYPES: Allowed values: required, preferredNODE_AFFINITY_EXPR_TYPE: Expression type (e.g., matchExpressions)NODE_AFFINITY_KEY: Node label keyNODE_AFFINITY_OPERATOR: Operator (e.g., In)NODE_AFFINITY_REQUIRED_VALUES: Required values (comma-separated)NODE_AFFINITY_PREFERRED_VALUES: Preferred values (comma-separated)required: requiredDuringSchedulingIgnoredDuringExecutionpreferred: preferredDuringSchedulingIgnoredDuringExecutionDefines whether pods should run close to other pods with specific labels.
Enable it with ENABLE_POD_AFFINITY=true.
POD_AFFINITY_TYPE: Type of affinity (e.g., required)POD_AFFINITY_EXPR_TYPE: Expression type (e.g., matchExpressions)POD_AFFINITY_KEY: Label keyPOD_AFFINITY_OPERATOR: Operator (e.g., In)POD_AFFINITY_REQUIRED_VALUE: Required valuePOD_AFFINITY_PREFERRED_VALUE: Preferred valuePOD_AFFINITY_TOPOLOGY_KEY: Topology key (e.g., topology.kubernetes.io/zone)Defines whether pods should avoid running on the same node or zone as specific pods.
Enable it with ENABLE_POD_ANTI_AFFINITY=true.
POD_ANTI_AFFINITY_TYPE: Type of anti-affinity (e.g., preferred)POD_ANTI_AFFINITY_EXPR_TYPE: Expression type (e.g., matchExpressions)POD_ANTI_AFFINITY_KEY: Label keyPOD_ANTI_AFFINITY_OPERATOR: Operator (e.g., In)POD_ANTI_AFFINITY_REQUIRED_VALUE: Required valuePOD_ANTI_AFFINITY_PREFERRED_VALUE: Preferred valuePOD_ANTI_AFFINITY_TOPOLOGY_KEY: Topology key (e.g., kubernetes.io/hostname)