mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
54 lines
1.5 KiB
Plaintext
54 lines
1.5 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * edge_computing/ztp-migrate-clusterinstance.adoc
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="ztp-clusterinstance-components_{context}"]
|
|
= Enabling the SiteConfig addon for migration
|
|
|
|
The SiteConfig Operator reconciles the `ClusterInstance` custom resource (CR). To deploy the SiteConfig Operator, you must enable the SiteConfig Addon in {rh-rhacm-first}.
|
|
|
|
.Prerequisites
|
|
|
|
* You have logged in to the hub cluster as a user with `cluster-admin` privileges.
|
|
* You have configured your {ztp} environment successfully.
|
|
* You have deployed {rh-rhacm-first} version 2.12 or later.
|
|
|
|
.Procedure
|
|
|
|
* Enable the SiteConfig add-on by running the following command:
|
|
+
|
|
[source,bash]
|
|
----
|
|
$ oc -n <namespace> patch multiclusterhubs.operator.open-cluster-management.io multiclusterhub --type json --patch '[{"op": "add", "path":"/spec/overrides/components/-", "value": {"name":"siteconfig","enabled": true}}]'
|
|
----
|
|
+
|
|
* Replace `<namespace>` with the namespace where {rh-rhacm} is installed, for example `open-cluster-management`.
|
|
+
|
|
.Example output
|
|
[source,bash]
|
|
----
|
|
multiclusterhub.operator.open-cluster-management.io/multiclusterhub patched
|
|
----
|
|
|
|
.Verification
|
|
|
|
* Check the status of the SiteConfig Operator by running the following command:
|
|
+
|
|
[source,bash]
|
|
----
|
|
$ oc -n <namespace> get po | grep siteconfig
|
|
----
|
|
+
|
|
.Example output
|
|
[source,bash]
|
|
----
|
|
siteconfig-controller-manager-6c864fb6b9-kvbv9 2/2 Running 0 43s
|
|
----
|
|
|
|
// Do you need to check siteconfig templates?
|
|
|
|
|
|
|
|
|