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/blog/2022-03-23-acm-mustonlyhave.md
+2-3
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,10 @@
1
1
---
2
-
layout: post
3
2
date: 2022-03-23
4
3
title: To musthave or to mustonlyhave
5
-
excerpt: ACM has multiple enforcement strategies, be careful which one you use
6
-
published: true
4
+
summary: ACM has multiple enforcement strategies, be careful which one you use
7
5
blog_tags:
8
6
- acm
7
+
aliases: /2022/03/23/acm-mustonlyhave/
9
8
---
10
9
11
10
Recently a user reported an issue when using the multicloud-gitops pattern: Namely, after testing changes in a feature branch (adding a helm application), said changes were not appearing on the remote clusters.
Copy file name to clipboardExpand all lines: content/blog/2022-10-12-acm-provisioning.md
+47-31
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,13 @@
1
1
---
2
-
layout: post
3
2
date: 2022-10-12
4
3
title: Multi-cluster GitOps with Provisioning
5
-
excerpt: With validated patterns, you can easily create and configure complex cluster topologies
6
-
published: true
4
+
summary: With validated patterns, you can easily create and configure complex cluster topologies
7
5
blog_tags:
8
6
- acm
9
7
- provisioning
10
8
- patterns
11
9
- GitOps
10
+
aliases: /2022/10/12/acm-provisioning/
12
11
---
13
12
14
13
# Multi-cluster GitOps with Provisioning
@@ -32,21 +31,25 @@ Let’s walk through an example using the Multi-Cloud GitOps pattern as an examp
32
31
33
32
## Preparation
34
33
35
-
Start by [deploying](https://hybrid-cloud-patterns.io/multicloud-gitops/getting-started/) the Multi-cloud GitOps pattern on AWS.
36
-
37
34
If you've never deployed OpenShift before, you could try [ROSA](https://cloud.redhat.com/learn/getting-started-red-hat-openshift-service-aws-rosa/deploy-rosa-cluster)
38
35
the pay-as-you-go OpenShift managed service.
39
36
40
-
Next, you'll need to create a fork of the
41
-
https://github.com/hybrid-cloud-gitops/multicloud-gitops/ repo. Go there in a
42
-
browser, make sure you’re logged in to GitHub, click the “Fork” button, and
43
-
confirm the destination by clicking the big green "Create fork" button.
37
+
| Installing a validated pattern |
38
+
| ------------------------------ |
39
+
|[](https://youtu.be/N6XPh-9XZAM)|
40
+
41
+
Start by [deploying](https://hybrid-cloud-patterns.io/multicloud-gitops/getting-started/) the Multi-cloud GitOps pattern on AWS.
42
+
43
+
Next, you'll need to create a fork of the [multicloud-gitops](https://github.com/hybrid-cloud-patterns/multicloud-gitops/)
44
+
repo. Go there in a browser, make sure you’re logged in to GitHub, click the
45
+
“Fork” button, and confirm the destination by clicking the big green "Create
46
+
fork" button.
44
47
45
48
Now you have a copy of the pattern that you can make changes to. You can read
46
49
more about the Multi-cloud GitOps pattern on our [community
Next, [install the Validated Patterns operator]([https://hybrid-cloud-patterns.io/infrastructure/using-validated-pattern-operator/](https://youtu.be/AHLam3u8eKM)) from Operator Hub.
52
+
Next, [install the Validated Patterns operator](https://hybrid-cloud-patterns.io/infrastructure/using-validated-pattern-operator/) from Operator Hub.
50
53
51
54
And finally, click through to the installed operator, and select the `Create
52
55
instance` button and fill out the Create a Pattern form. Most of the defaults
@@ -68,17 +71,20 @@ credentials. To do this you can either manually load the secrets into the
68
71
vault via the UI, or make use of the following process for loading them from a
First clone your fork of the repository onto your local machine, and copy the template to a location not controlled by Git (to avoid accidentally committing the contents)
_[1]_ A guide to finding the relevant AWS values can be found [here](https://docs.aws.amazon.com/powershell/latest/userguide/pstools-appendix-sign-up.html)
94
99
You might even have them in a `~/.aws/credentials` file.
95
100
96
101
_[2]_ The public key is used to allow access to OpenShift nodes for triage purposes.
97
102
98
-
_[3]_ The openshiftPullSecret is how Red Hat knows you’ve got a licence to install
99
-
OpenShift. To obtain one, go to
100
-
https://console.redhat.com/openshift/install/pull-secret, save the contents, and
101
-
provide that path in the secrets file. The contents should start with something
These values will be used to create a number of secrets that ACM expects in
116
119
order to provision clusters.
117
120
121
+
| Loading Secrets into the Cluster |
122
+
| ------------------------- |
123
+
| [](https://youtu.be/LSDUTfZvcyA) |
124
+
118
125
## Define a Managed Cluster Group
119
126
120
127
Managed cluster groups are sets of clusters, grouped by function, that share a
@@ -124,7 +131,7 @@ of approximately 1000 clusters in total.
124
131
125
132
The following is the example we will use today:
126
133
127
-
```
134
+
```yaml
128
135
managedClusterGroups:
129
136
myFirstGroup:
130
137
name: group-one
@@ -156,8 +163,13 @@ on-demand and at scale.
156
163
157
164
You can read more about cluster pools in the [ACM documentation](https://access.redhat.com/documentation/en-us/red_hat_advanced_cluster_management_for_kubernetes/2.6/html/multicluster_engine/multicluster_engine_overview#managing-cluster-pools)
158
165
166
+
| Defining the cluster pool | Defining clusters |
167
+
| ------------------------- | ----------------- |
168
+
| [](https://youtu.be/FaomChtlUE4) | [](https://youtu.be/IJk3vTjMPCo) |
169
+
159
170
Each managed cluster group can have multiple pools, here is an example:
160
-
```
171
+
172
+
```yaml
161
173
clusterPools:
162
174
myFirstPool:
163
175
name: aws-ap
@@ -185,17 +197,21 @@ If `.size` is omitted, the pool will automatically resize based on the number of
185
197
clusters specified. Specifying no clusters will define the pool, but not
186
198
provision any clusters.
187
199
188
-
[](https://youtu.be/FaomChtlUE4)
## Delivering Applications and Configuration to Clusters
193
201
194
-
[](https://youtu.be/emn_Coqp5jQ)
202
+
| Delivering Configuration Changes |
203
+
| -------------------------------- |
204
+
| [](https://youtu.be/oorZnch-ggY) |
As the provisioning data only exists on the ACM hub cluster, it is important to ensure any managed clusters are deprovisioned _before_ the hub itself is destroyed. In general this involves scaling down the pool(s), and removing the entries in the `clusters:` list.
0 commit comments