You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
= Attach a managed cluster (edge) to the management hub
15
15
16
+
The use of this Multicloud GitOps pattern depends on having at least one running Red Hat OpenShift cluster.
17
+
16
18
When you install the multi-cloud GitOps pattern, a hub cluster is setup. The hub cluster serves as the central point for managing and deploying applications across multiple clusters.
Copy file name to clipboardExpand all lines: modules/comm-designate-cluster-as-managed-cluster-site.adoc
+27-5Lines changed: 27 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,16 +10,38 @@ To tag the cluster as `clusterGroup=<managed-cluster-group>`, complete the follo
10
10
11
11
.Procedure
12
12
13
-
. To find the new cluster, run the following command:
13
+
. To list all managed clusters, run the following command:
14
14
+
15
15
[source,terminal]
16
16
----
17
-
oc get managedcluster.cluster.open-cluster-management.io
17
+
$ oc get managedcluster.cluster.open-cluster-management.io
18
+
----
19
+
+
20
+
This will display a list of managed clusters registered in ACM, including their names and statuses.
21
+
22
+
. Once you identify the target cluster for example `YOURCLUSTER`, label it with the desired key-value pair to associate it with a group or category. To apply the label, run the following command:
$ oc get managedcluster.cluster.open-cluster-management.io/YOURCLUSTER --show-labels
36
+
----
37
+
+
38
+
This will display the labels associated with the cluster, verifying that the new label has been successfully added..
39
+
40
+
. Optional: If you’re grouping clusters under a clusterGroup for example `factory`, `devel`, or `prod`, add the clusterGroup label also by running the following command:
Copy file name to clipboardExpand all lines: modules/mcg-deploying-managed-cluster-using-rhacm.adoc
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,13 +14,13 @@
14
14
+
15
15
[NOTE]
16
16
====
17
-
After RHACM is installed, a message regarding a *Web console update is available*" might be displayed. Follow the instructions and click the *Refresh web console* link.
17
+
After RHACM is installed, a message regarding a *Web console update is available* might be displayed. Follow the instructions and click the *Refresh web console* link.
18
18
====
19
19
20
20
.Procedure
21
21
22
22
. In the left navigation panel of web console, click *local-cluster*. Select *All Clusters*. The RHACM web console is displayed with *Cluster** on the left navigation panel.
23
23
. On the *Managed clusters* tab, click *Import cluster*.
24
-
. On the *Import an existing cluster* page, enter the cluster name and choose *KUBECONFIG* as the "import mode". Add the tag `clusterGroup=region-one`. Click *Import*.
24
+
. On the *Import an existing cluster* page, enter the cluster name and choose *KUBECONFIG* as the "import mode". Add the tag `clusterGroup=group-one`. Click *Import*.
25
25
26
26
Now that RHACM is no longer deploying the managed cluster applications everywhere, you must indicate that the new cluster has the managed cluster role.
Copy file name to clipboardExpand all lines: modules/mcg-deploying-mcg-pattern.adoc
+7-8Lines changed: 7 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,6 @@ $ oc get storageclass -o custom-columns=NAME:.metadata.name,PROVISIONER:.provisi
42
42
NAME PROVISIONER DEFAULT
43
43
gp2-csi ebs.csi.aws.com <none>
44
44
gp3-csi ebs.csi.aws.com true
45
-
46
45
----
47
46
48
47
* Optional: A second OpenShift cluster for multicloud demonstration.
@@ -155,12 +154,12 @@ Choosing a Community Operator warns that Red Hat does not certify Community Oper
155
154
.. Select a *Version* (if more than one is available).
156
155
157
156
.. Select an *Installation mode*:
158
-
*** *All namespaces on the cluster (default)* installs the Operator in the default `openshift-operators` namespace to watch and be made available to all namespaces in the cluster. This option is not always available.
159
-
*** *A specific namespace on the cluster* allows you to choose a specific, single namespace in which to install the Operator. The Operator will only watch and be made available for use in this single namespace.
157
+
+
158
+
The only supported mode for this Operator is *All namespaces on the cluster (default)*. This installs the Operator in the default `openshift-operators` namespace to watch and be made available to all namespaces in the cluster. This option is not always available.
160
159
161
160
.. Select *Automatic* or *Manual* approval strategy.
162
161
163
-
. Click *Install* to make the Operator available to the selected namespaces on this {ocp} cluster.
162
+
. Click *Install* to make the Operator available to the default `openshift-operators` namespace on this {ocp} cluster.
164
163
165
164
.Verification
166
165
To confirm that the installation is successful:
@@ -203,9 +202,9 @@ To know the cluster group name for the patterns that you want to deploy, check t
203
202
A pop-up error with the message "Oh no! Something went wrong." might appear during the process. This error can be safely disregarded as it does not impact the installation of the Multicloud GitOps pattern. Use the Hub ArgoCD UI, accessible through the nines menu, to check the status of ArgoCD instances, which will display states such as progressing, healthy, and so on, for each managed application. The Cluster ArgoCD provides detailed status on each application, as defined in the clustergroup values file.
204
203
====
205
204
206
-
The {rh-gitops} Operator displays in list of *Installed Operators*. The {rh-gitops} Operator installs the remaining assets and artifacts for this pattern. To view the installation of these assets and artifacts, such as {rh-rhacm-first}, ensure that you switch to *Project:All Projects*.
205
+
The *{rh-gitops} Operator* displays in list of *Installed Operators*. The *{rh-gitops} Operator* installs the remaining assets and artifacts for this pattern. To view the installation of these assets and artifacts, such as *{rh-rhacm-first}*, ensure that you switch to *Project:All Projects*.
207
206
208
-
When viewing the `config-demo` project through the Hub `ArgoCD` UI from the nines menu, it appears stuck in a Degraded state. This is the expected behavior when installing using the OpenShift Container Platform console.
207
+
When viewing the `config-demo` project through the `Hub ArgoCD` UI from the nines menu, it appears stuck in a `Degraded` state. This is the expected behavior when installing using the OpenShift Container Platform console.
209
208
210
209
* To resolve this you need to run the following to load the secrets into the vault:
211
210
+
@@ -256,8 +255,8 @@ $ ./pattern.sh make install
256
255
257
256
. Verify that the Operators have been installed.
258
257
.. To verify, in the OpenShift Container Platform web console, navigate to *Operators → Installed Operators* page.
259
-
.. Check that the Operator is installed in the `openshift-operators` namespace and its status is `Succeeded`.
260
-
. Verify that all applications are synchronized. Under the project `multicloud-gitops-hub` click the URL for the `hub` gitops `server`. The Vault application is not synched.
258
+
.. Check that *{rh-gitops} Operator* is installed in the `openshift-operators` namespace and its status is `Succeeded`.
259
+
. Verify that all applications are synchronized. Under *Networking \-> Routes \* select the *Location URL* associated with the *hub-gitops-server* . All application are report status as `Synched`.
Copy file name to clipboardExpand all lines: modules/mcg-understanding-rhacm-requirements.adoc
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ $ git checkout my-branch main
18
18
----
19
19
20
20
. In the `value-hub.yaml` file, add a `managedClusterGroup` for each cluster or group of clusters that you want to manage as one.
21
-
21
+
+
22
22
[source,yaml]
23
23
----
24
24
managedClusterGroups:
@@ -31,11 +31,11 @@ managedClusterGroups:
31
31
- name: clusterGroup.isHubCluster
32
32
value: false
33
33
----
34
-
34
+
+
35
35
The above YAML file segment deploys the `clusterGroup` applications on managed clusters with the label `clusterGroup=group-one`. Specific subscriptions and Operators, applications and projects for that `clusterGroup` are then managed in a `value-group-one.yaml` file.
0 commit comments