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: install/install_connected.md
+60-60Lines changed: 60 additions & 60 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,105 +23,105 @@ You must meet the following requirements before you install Red Hat Advanced Clu
23
23
24
24
1. Create a namespace where the operator requirements are contained:
25
25
26
-
```
27
-
oc create namespace <namespace>
28
-
```
26
+
```
27
+
oc create namespace <namespace>
28
+
```
29
29
30
30
Replace _namespace_ with a name for your namespace.
31
31
32
32
**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.
33
33
34
34
2. Switch your project namespace to the one that you created:
35
35
36
-
```
37
-
oc project <namespace>
38
-
```
36
+
```
37
+
oc project <namespace>
38
+
```
39
39
Replace _namespace_ with the name of the namespace that you created in step 1.
40
40
41
41
3. Create an operator group. Each namespace can have only one operator group.
42
42
43
43
1. Create a `.yaml` file that defines the operator group. Your file should look similar to the following example:
44
44
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
+
```
54
54
55
55
Replace _default_ with the name of your operator group.
56
56
Replace _namespace_ with the name of your project namespace.
57
57
58
58
2. Apply the file that you created to define the operator group:
59
59
60
-
```
61
-
oc apply -f local/<operator-group>.yaml
62
-
```
60
+
```
61
+
oc apply -f local/<operator-group>.yaml
62
+
```
63
63
Replace _operator-group_ with the name of the operator group `.yaml` file that you created.
64
64
65
65
4. Apply the subscription.
66
66
67
67
1. Create a `.yaml` file that defines the subscription. Your file should look similar to the following example:
68
68
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
+
```
81
81
82
82
2. Apply the subscription:
83
83
84
-
```
85
-
oc apply -f local/<subscription>.yaml
86
-
```
84
+
```
85
+
oc apply -f local/<subscription>.yaml
86
+
```
87
87
88
88
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.
Replace _secret_ with the name of the secret that you created.
94
94
Replace _docker_username_ with your username for the distribution registry that you identified as the `docker-server`.
95
95
Replace _docker_password_ with your password or token for the distribution registry that you identified as the `docker-server`.
96
96
97
97
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:
0 commit comments