// Module included in the following assemblies:
//
// assembly-resource-limits-and-requests.adoc

[id='proc-configuring-resource-limits-and-requests-{context}']
= Configuring resource requests and limits

.Prerequisites

* A Kubernetes cluster
* A running Cluster Operator

.Procedure

. Edit the `resources` property in the resource specifying the cluster deployment.
For example:
+
[source,yaml,subs=attributes+]
----
apiVersion: {KafkaApiVersion}
kind: Kafka
spec:
  kafka:
    # ...
    resources:
      requests:
        cpu: "8"
        memory: 64Gi
      limits:
        cpu: "12"
        memory: 128Gi
    # ...
  zookeeper:
    # ...
----

. Create or update the resource.
+
This can be done using `kubectl apply`:
[source,shell,subs=+quotes]
kubectl apply -f _your-file_

.Additional resources
* For more information about the schema, see {K8sResourceRequirementsAPI}.
