// Module included in the following assemblies:
//
// assembly-node-scheduling.adoc
// assembly-dedicated-nodes.adoc

[id='affinity-{context}']
= Affinity

Affinity can be configured using the `affinity` property in following resources:

* `Kafka.spec.kafka`
* `Kafka.spec.zookeeper`
* `Kafka.spec.entityOperator`
* `KafkaConnect.spec`
* `KafkaConnectS2I.spec`

The affinity configuration can include different types of affinity:

* Pod affinity and anti-affinity
* Node affinity

The format of the `affinity` property follows the {ProductPlatformName} specification.
For more details, see the {K8sAffinity}.
