// Module included in the following assemblies:
//
// assembly-cluster-operator.adoc

[id='deploying-cluster-operator-openshift-{context}']
= Deploying the Cluster Operator to {OpenShiftName}

.Prerequisites

* A user with `cluster-admin` role needs to be used, for example, `system:admin`.
* Modify the installation files according to the namespace the Cluster Operator is going to be installed in.
+
On Linux, use:
+
[source, subs="+quotes"]
----
sed -i 's/namespace: .\*/namespace: _my-project_/' install/cluster-operator/*RoleBinding*.yaml
----
+
On MacOS, use:
+
[source, subs="+quotes"]
----
sed -i '' 's/namespace: .\*/namespace: _my-project_/' install/cluster-operator/*RoleBinding*.yaml
----

.Procedure

. Deploy the Cluster Operator
+
[source]
----
oc apply -f install/cluster-operator -n _my-project_
oc apply -f examples/templates/cluster-operator -n _my-project_
----
