Skip to content

Commit f22e156

Browse files
committed
numbering test
1 parent fc4245a commit f22e156

File tree

1 file changed

+60
-60
lines changed

1 file changed

+60
-60
lines changed

install/install_connected.md

Lines changed: 60 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -23,105 +23,105 @@ You must meet the following requirements before you install Red Hat Advanced Clu
2323

2424
1. Create a namespace where the operator requirements are contained:
2525

26-
```
27-
oc create namespace <namespace>
28-
```
26+
```
27+
oc create namespace <namespace>
28+
```
2929

3030
Replace _namespace_ with a name for your namespace.
3131

3232
**Important:** The Red Hat Advanced Cluster Management operator must be installed in its own namespace. A `ServiceAccount` with a `ClusterRoleBinding` automatically gives cluster administrator privileges to Red Hat Advanced Cluster Management and to any ID with access to the namespace. For security, make sure that anyone who is given access to this namespace already has cluster-administrator access.
3333

3434
2. Switch your project namespace to the one that you created:
3535

36-
```
37-
oc project <namespace>
38-
```
36+
```
37+
oc project <namespace>
38+
```
3939
Replace _namespace_ with the name of the namespace that you created in step 1.
4040

4141
3. Create an operator group. Each namespace can have only one operator group.
4242

4343
1. Create a `.yaml` file that defines the operator group. Your file should look similar to the following example:
4444

45-
```
46-
apiVersion: operators.coreos.com/v1
47-
kind: OperatorGroup
48-
metadata:
49-
name: <default>
50-
spec:
51-
targetNamespaces:
52-
- <namespace>
53-
```
45+
```
46+
apiVersion: operators.coreos.com/v1
47+
kind: OperatorGroup
48+
metadata:
49+
name: <default>
50+
spec:
51+
targetNamespaces:
52+
- <namespace>
53+
```
5454

5555
Replace _default_ with the name of your operator group.
5656
Replace _namespace_ with the name of your project namespace.
5757

5858
2. Apply the file that you created to define the operator group:
5959

60-
```
61-
oc apply -f local/<operator-group>.yaml
62-
```
60+
```
61+
oc apply -f local/<operator-group>.yaml
62+
```
6363
Replace _operator-group_ with the name of the operator group `.yaml` file that you created.
6464

6565
4. Apply the subscription.
6666

6767
1. Create a `.yaml` file that defines the subscription. Your file should look similar to the following example:
6868

69-
```
70-
apiVersion: operators.coreos.com/v1alpha1
71-
kind: Subscription
72-
metadata:
73-
name: acm-operator-subscription
74-
spec:
75-
sourceNamespace: openshift-marketplace
76-
source: redhat-operators
77-
channel: release-1.0
78-
installPlanApproval: Automatic
79-
name: advanced-cluster-management
80-
```
69+
```
70+
apiVersion: operators.coreos.com/v1alpha1
71+
kind: Subscription
72+
metadata:
73+
name: acm-operator-subscription
74+
spec:
75+
sourceNamespace: openshift-marketplace
76+
source: redhat-operators
77+
channel: release-1.0
78+
installPlanApproval: Automatic
79+
name: advanced-cluster-management
80+
```
8181
8282
2. Apply the subscription:
8383

84-
```
85-
oc apply -f local/<subscription>.yaml
86-
```
84+
```
85+
oc apply -f local/<subscription>.yaml
86+
```
8787

8888
5. Generate a pull secret to access the entitled content from the distribution registry. **Important:** Pull secrets are namespace-specific, so make sure that you are in the namespace that you created in step 1.
8989

90-
```
91-
oc create secret docker-registry <secret> --docker-server=registry.access.redhat.com/rhacm1-tech-preview --docker-username=<docker_username> --docker-password=<docker_password>
92-
```
90+
```
91+
oc create secret docker-registry <secret> --docker-server=registry.access.redhat.com/rhacm1-tech-preview --docker-username=<docker_username> --docker-password=<docker_password>
92+
```
9393
Replace _secret_ with the name of the secret that you created.
9494
Replace _docker_username_ with your username for the distribution registry that you identified as the `docker-server`.
9595
Replace _docker_password_ with your password or token for the distribution registry that you identified as the `docker-server`.
9696

9797
6. Create the MultiClusterHub custom resource by creating a `.yaml` file that defines the custom resource. Your file should look similar to the following example:
9898

99-
```
100-
apiVersion: operators.open-cluster-management.io/v1beta1
101-
kind: MultiClusterHub
102-
metadata:
103-
name: multiclusterhub
104-
namespace: <namespace>
105-
spec:
106-
imagePullSecret: <secret>
107-
```
99+
```
100+
apiVersion: operators.open-cluster-management.io/v1beta1
101+
kind: MultiClusterHub
102+
metadata:
103+
name: multiclusterhub
104+
namespace: <namespace>
105+
spec:
106+
imagePullSecret: <secret>
107+
```
108108

109109
Replace _namespace_ with your project namespace.
110110
Replace _secret_ with the name of the secret that you created.
111111

112112
If this step fails with the following error, the resources are still being created and applied:
113113

114-
```
115-
error: unable to recognize "./mch.yaml": no matches for kind "MultiClusterHub" in version "operators.open-cluster- management.io/v1beta1"
116-
```
114+
```
115+
error: unable to recognize "./mch.yaml": no matches for kind "MultiClusterHub" in version "operators.open-cluster- management.io/v1beta1"
116+
```
117117

118118
Run the command again in a few minutes when the resources are created.
119119

120120
7. View the list of routes after about 10 minutes to find your route:
121121

122-
```
123-
oc get routes
124-
```
122+
```
123+
oc get routes
124+
```
125125

126126
## Installing Red Hat Advanced Cluster Management from the console
127127

@@ -181,15 +181,15 @@ You must meet the following requirements before you install Red Hat Advanced Clu
181181

182182
4. Update the default values in the `.yaml` file, according to your needs. The following example shows some sample data:
183183

184-
```
185-
apiVersion: operators.open-cluster-management.io/v1beta1
186-
kind: MultiClusterHub
187-
metadata:
188-
name: multiclusterhub
189-
namespace: <namespace>
190-
spec:
191-
imagePullSecret: <secret>
192-
```
184+
```
185+
apiVersion: operators.open-cluster-management.io/v1beta1
186+
kind: MultiClusterHub
187+
metadata:
188+
name: multiclusterhub
189+
namespace: <namespace>
190+
spec:
191+
imagePullSecret: <secret>
192+
```
193193

194194
Replace _secret_ with the name of the pull secret that you created.
195195
Confirm that the _namespace_ is your project namespace.

0 commit comments

Comments
 (0)