apiVersion: v1
kind: ConfigMap
metadata:
  name: my-cluster
  labels:
    strimzi.io/kind: cluster
    strimzi.io/type: kafka
data:
  kafka-rack: |
    { "topologyKey": "failure-domain.beta.kubernetes.io/zone" }
  kafka-affinity: |
    podAntiAffinity:
      preferredDuringSchedulingIgnoredDuringExecution:
      - podAffinityTerm:
          labelSelector:
            matchExpressions: []
            matchLabels:
              strimzi.io/name: "my-cluster-kafka"
              strimzi.io/type: "kafka"
              strimzi.io/cluster: "my-cluster"
          namespaces: []
          topologyKey: "failure-domain.beta.kubernetes.io/zone"
        weight: 100
      requiredDuringSchedulingIgnoredDuringExecution: []
