// This assembly is included in the following assemblies:
//
// assembly-customizing-deployments.adoc

[id='proc-customizing-deployments-{context}']
= Customizing deployments

This procedure describes how to customize `Labels` of a Kafka cluster.

.Prerequisites

* An {ProductPlatformName} cluster.
* A running Cluster Operator.

.Procedure

. Edit the `template` property in the `Kafka`, `KafkaConnect`, `KafkaConnectS2I`, or `KafkaMirrorMaker` resource.
For example, to modify the labels for the Kafka broker `StatefulSet`, use:
+
[source,yaml,subs=attributes+]
----
apiVersion: {KafkaApiVersion}
kind: Kafka
metadata:
  name: my-cluster
  labels:
    app: my-cluster
spec:
  kafka:
    # ...
    template:
      statefulset:
        metadata:
          labels:
            mylabel: myvalue
    # ...
----
+
. Create or update the resource.
+
ifdef::Kubernetes[]
On {KubernetesName}, use `kubectl apply`:
[source,shell,subs=+quotes]
kubectl apply -f _your-file_
+
Alternatively, use `kubectl edit`:
[source,shell,subs=+quotes]
kubectl edit _Resource_ _ClusterName_
+
endif::Kubernetes[]
On {OpenShiftName}, use `oc apply`:
+
[source,shell,subs=+quotes]
oc apply -f _your-file_
+
Alternatively, use `oc edit`:
[source,shell,subs=+quotes]
oc edit _Resource_ _ClusterName_