// Module included in the following assemblies:
//
// assembly-getting-started-user-operator.adoc

[id='proc-deploying-the-user-operator-using-the-cluster-operator-{context}']
= Deploying the User Operator using the Cluster Operator

.Prerequisites

* A running Cluster Operator
* A `Kafka` resource to be created or updated.

.Procedure

. Edit the `Kafka` resource ensuring it has a `Kafka.spec.entityOperator.userOperator` object that configures the User Operator how you want.

. Create or update the Kafka resource in {ProductPlatformName}.
+
ifdef::Kubernetes[]
On {KubernetesName} this can be done using `kubectl apply`:
[source,shell,subs=+quotes]
kubectl apply -f _your-file_
+
endif::Kubernetes[]
On {OpenShiftName} this can be done using `oc apply`:
+
[source,shell,subs=+quotes]
oc apply -f _your-file_

.Additional resources

* For more information about deploying the Cluster Operator, see xref:cluster-operator-str[].
// TODO: Uncomment link after merging with the other PR
// * For more information about deploying the Entity Operator, see xref:assembly-kafka-entity-operator-deployment-configuration-kafka[].
* For more information about the `Kafka.spec.entityOperator` object used to configure the User Operator when deployed by the Cluster Operator, see xref:type-EntityOperatorSpec-reference[`EntityOperatorSpec` schema reference].
