Skip to content

NodeAffinity

Contexts

Context Relationship Object Path Package File Path
Database.Shard.Dap.Instances.K8sPolicy.Affinity Package -> Database -> Shard -> Dap -> Instances -> K8sPolicy -> Affinity -> NodeAffinity $.databases[*].shards[*].daps.instances.*.k8sPolicy.affinity.nodeAffinity {package-root}/databases/{db-name}/shards/{shard-name}.yaml
Database.Shard.Sequencer.K8sPolicy.Affinity Package -> Database -> Shard -> Sequencer -> K8sPolicy -> Affinity -> NodeAffinity $.databases[*].shards[*].sequencers.*.k8sPolicy.affinity.nodeAffinity {package-root}/databases/{db-name}/shards/{shard-name}.yaml
Database.Shard.Sm.K8sPolicy.Affinity Package -> Database -> Shard -> Sm -> K8sPolicy -> Affinity -> NodeAffinity $.databases[*].shards[*].sm.k8sPolicy.affinity.nodeAffinity {package-root}/databases/{db-name}/shards/{shard-name}.yaml
Pipeline.Controller.K8sPolicy.Affinity Package -> Pipeline -> Controller -> K8sPolicy -> Affinity -> NodeAffinity $.pipelines[*].controller.k8sPolicy.affinity.nodeAffinity {package-root}/pipelines/{pipeline-name}.yaml
Pipeline.Worker.K8sPolicy.Affinity Package -> Pipeline -> Worker -> K8sPolicy -> Affinity -> NodeAffinity $.pipelines[*].worker.k8sPolicy.affinity.nodeAffinity {package-root}/pipelines/{pipeline-name}.yaml
Router.Agg.K8sPolicy.Affinity Package -> Router -> Agg -> K8sPolicy -> Affinity -> NodeAffinity $.router.agg.k8sPolicy.affinity.nodeAffinity {package-root}/router/{router-name}.yaml
Router.Rc.K8sPolicy.Affinity Package -> Router -> Rc -> K8sPolicy -> Affinity -> NodeAffinity $.router.rc.k8sPolicy.affinity.nodeAffinity {package-root}/router/{router-name}.yaml

Fields

Field Type Required Description Constraints Default
preferredDuringSchedulingIgnoredDuringExecution array<PreferredDuringSchedulingIgnoredDuringExecutionItem> | null no The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - null
requiredDuringSchedulingIgnoredDuringExecution RequiredDuringSchedulingIgnoredDuringExecution | null no If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. - null

Used In

Back to top