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
Copy file name to clipboardExpand all lines: content/learn/getting-started-multi-cloud-gitops.adoc
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -219,7 +219,7 @@ A pop-up error with the message "Oh no! Something went wrong." might appear duri
219
219
220
220
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*.
221
221
222
-
Wait some time for everything to deploy. You can track the progress through the `Hub ArgoCD` UI from the nines menu. The viewing the `config-demo` project it appears stuck in a Degraded state. This is the expected behavior when installing using the OpenShift Container Platform console.
222
+
Wait some time for everything to deploy. You can track the progress through the `Hub ArgoCD` UI from the nines menu. The `config-demo` project appears stuck in a `Degraded` state. This is the expected behavior when installing using the OpenShift Container Platform console.
223
223
224
224
* To resolve this you need to run the following to load the secrets into the vault:
The multicloud gitops pattern is designed to be an entrypoint into the Validated Patterns framework. For more information on Validated Patterns visit our link:/[documentation site]
14
+
== Verifying the MultiCloud GitOps pattern
16
15
17
-
[id="demo-objectives"]
16
+
The MultiCloud GitOps is designed to be an entrypoint into the Validated Patterns framework. The pattern includes two applications that can help you verify the installation. The `hello-world` application is a simple web page that prints "Hello World!" and the `config-demo` application is a simple web page that prints a secret that is loaded into the vault.
18
17
19
-
== Objectives
18
+
Verify the applications are successfully deployed by following this procedure.
20
19
21
-
In this demo you will complete the following:
22
20
23
-
* Prepare your local workstation
24
-
* Deploy the pattern
25
-
* Extend the pattern with a small tweak
21
+
.Procedure
22
+
. Check the *Red Hat OpenShift GitOps Operator* is installed.
26
23
27
-
[id="getting-started"]
24
+
. Launch the *Hub OpenShift ArgoCD* console from nines menu in the top right of the OpenShift console and verify the applications report the status `Healthy` and `Synched`.
28
25
29
-
== Getting Started
26
+
Verify that the *hello-world* application deployed successfully as follows:
30
27
31
-
* Make sure you have met all the link:/learn/quickstart/#installation_prerequisites[installation prerequisites]
32
-
* Follow the link:../mcg-getting-started[Getting Started Guide] to ensure that you have met all of the prerequisites
28
+
. In the OpenShift console go to the *Networking* -> *Routes* menu options.
33
29
34
-
[NOTE]
35
-
====
36
-
This demo begins after `./pattern.sh make install` has been executed
37
-
====
38
-
39
-
[id="demo"]
40
-
41
-
== Demo
42
-
43
-
Now that we have deployed the pattern onto our cluster, with `origin` pointing to your fork and using `my-branch` as the name of the used branch, we can begin to discover what has happened.
44
-
You should be able to click on the nine-box and see the following entries:
45
-
46
-
image:multicloud-gitops/nine-box.png[]
47
-
48
-
If you now click on the "Hub ArgoCD" menu entry you will be taken to the ArgoCD instance with all the applications.
49
-
50
-
image:multicloud-gitops/hub-argocd.png[]
30
+
. From the *Project:* drop down select the *hello-world* project.
51
31
32
+
. Click the *Location* URL. This should reveal the following:
33
+
+
34
+
[source,terminal]
35
+
----
36
+
Hello World!
52
37
38
+
Hub Cluster domain is 'apps.aws-hub-cluster.openshift.org'
39
+
Pod is running on Local Cluster Domain 'apps.aws-hub-cluster.openshift.org'
40
+
----
53
41
54
-
[id="secrets"]
42
+
Verify that the *config-demo* application deployed successfully as follows:
55
43
56
-
=== Secrets loading
44
+
. In the OpenShift console go to the *Networking* -> *Routes* menu options.
57
45
58
-
By default in the MultiCloud GitOps pattern the secrets get loaded automatically via an out of band process inside the vault running in the OCP cluster. This means that running `./pattern.sh make install` will also call the `load-secrets` makefile target.
59
-
This `load-secrets` target will look for a yaml file describing the secrets to be loaded into vault and in case it cannot find one it will use the `values-secret.yaml.template` file in the git repo to try and generate random secrets.
46
+
. From the *Project:* drop down select the *config-demo* project.
60
47
61
-
Let's copy the template to our home folder and reload the secrets:
48
+
. Click the *Location* URL. This should reveal the following:
Hub Cluster domain is 'apps.aws-hub-cluster.openshift.org'
53
+
Pod is running on Local Cluster Domain 'apps.aws-hub-cluster.openshift.org'
54
+
The secret is `secret`
55
+
----
66
56
67
-
At this point if the `config-demo` application was not green already it should become green in the ArgoCD user interface.
57
+
=== Customize the web page
68
58
59
+
make a small change to the `hello-world` application to see how the GitOps framework applies the change.
69
60
70
-
[id="verify"]
61
+
.Procedure
71
62
72
-
=== Verify the test web pages
73
-
74
-
If you now click on the `Routes` in the `Networking` menu entry you will see the following network routes:
75
-
76
-
image:multicloud-gitops/network-routes.png[]
77
-
78
-
Clicking on the `hello-world` application should show a small demo app that prints "Hello World!":
63
+
. Edit `charts/all/hello-world/templates/hello-world-cm.yaml` adding the line `This is a patched version via git`` as shown below:
64
+
+
65
+
[source,terminal]
66
+
----
67
+
</head>
68
+
<body>
69
+
<h1>Hello World!</h1>
70
+
+ <h1>This is a patched version via git</h1>
71
+
<br/>
72
+
<h2>
73
+
Hub Cluster domain is '{{ .Values.global.hubClusterDomain }}' <br>
74
+
----
75
+
76
+
. Commit this change by running the following command:
77
+
+
78
+
[source,terminal]
79
+
----
80
+
$ git commit -a -m "test a change"
81
+
----
79
82
80
-
image:multicloud-gitops/hello-world.png[]
83
+
. Push the change to the remote repository by running the following command:
84
+
+
85
+
[source,terminal]
86
+
----
87
+
$ git push origin my-branch
88
+
----
81
89
82
-
Once the secrets are loaded correctly inside the vault, clicking on the `config-demo` route should display a small application where said secret is shown:
90
+
ArgoCD will apply the change to the `hello-world` application.
83
91
84
-
image:multicloud-gitops/config-demo.png[]
92
+
Verify that the update to the *hello-world* application is successfully applied as follows:
85
93
86
-
=== Make a small change to the test web pages
94
+
. In the OpenShift console go to the *Networking* -> *Routes* menu options.
87
95
88
-
Now we can try and tweak the hello-world application and add the below line in
89
-
the `charts/all/hello-world/templates/hello-world-cm.yaml` file:
Copy file name to clipboardExpand all lines: content/patterns/multicloud-gitops/mcg-managed-cluster.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
@@ -1,6 +1,6 @@
1
1
---
2
2
title: Managed cluster sites
3
-
weight: 20
3
+
weight: 30
4
4
aliases: /multicloud-gitops/mcg-managed-cluster/
5
5
---
6
6
@@ -39,7 +39,7 @@ It might take a while for the RHACM agent and `agent-addons` to launch.
39
39
40
40
. Check the *Red Hat OpenShift GitOps Operator* is installed.
41
41
42
-
. Launch the *Group-One OpenShift ArgoCD* console from the top right nines menu of the OpenShift console.
42
+
. Launch the *Group-One OpenShift ArgoCD* console from nines menu in the top right of the OpenShift console. Verify the applications report the status `Healthy` and `Synched`.
43
43
44
44
Verify that the *hello-world* application deployed successfully as follows:
Copy file name to clipboardExpand all lines: modules/mcg-about-customizing-pattern.adoc
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,14 @@ You can customize this demo in different ways.
11
11
[id="split-config-demo"]
12
12
== Split the config-demo across hub and regional clusters
13
13
14
-
Currently hub and regional clusters are reusing the exact same helm chart found at `charts/all/config-demo`. The first customization step could be to split the demo app in two separate charts: one in `charts/hub/config-demo` and one in `charts/region/config-demo`. Once `charts/all/config-demo` has been copied to `charts/hub/config-demo` and `charts/region/config-demo`, you need to include them in the respective `values-hub.yaml` and `values-region-one.yaml`, respectively.
14
+
Currently hub and regional clusters are reusing the exact same helm chart found at `charts/all/config-demo`.
15
+
16
+
The first customization step could be to split the demo app in two separate charts:
17
+
18
+
* One in `charts/hub/config-demo`
19
+
* One in `charts/region/config-demo`.
20
+
21
+
`charts/all/config-demo` has been copied to `charts/hub/config-demo` and `charts/region/config-demo`, you need to include them in the respective `values-hub.yaml` and `values-region-one.yaml`, respectively.
15
22
16
23
After completing this configuration, you can start customizing the two apps and make them output a different web page entirely depending if the pod is running on the hub or on the cluster.
Copy file name to clipboardExpand all lines: modules/mcg-deploying-mcg-pattern.adoc
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,6 +43,8 @@ NAME PROVISIONER DEFAULT
43
43
gp2-csi ebs.csi.aws.com <none>
44
44
gp3-csi ebs.csi.aws.com true
45
45
----
46
+
+
47
+
For more information about creating a dynamic `StorageClass`, see the https://docs.openshift.com/container-platform/latest/storage/dynamic-provisioning.html[Dynamic provisioning].
46
48
47
49
* Optional: A second OpenShift cluster for multicloud demonstration.
48
50
//Replaced git and podman prereqs with the tooling dependencies page
@@ -204,7 +206,7 @@ A pop-up error with the message "Oh no! Something went wrong." might appear duri
204
206
205
207
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*.
206
208
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
+
Wait some time for everything to deploy. You can track the progress through the `Hub ArgoCD` UI from the nines menu. The `config-demo` project appears stuck in a `Degraded` state. This is the expected behavior when installing using the OpenShift Container Platform console.
208
210
209
211
* To resolve this you need to run the following to load the secrets into the vault:
0 commit comments