// 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

* A Kubernetes 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.
+
Use `kubectl apply`:
[source,shell,subs=+quotes]
kubectl apply -f _your-file_
+
Alternatively, use `kubectl edit`:
[source,shell,subs=+quotes]
kubectl edit _Resource_ _ClusterName_
