1
+ // Module included in the following assemblies:
2
+ //
3
+ // * networking/metallb/metallb-operator-install.adoc
4
+
1
5
[id="nw-metallb-installing-operator-cli_{context}"]
2
6
= Installing from OperatorHub using the CLI
3
7
@@ -22,7 +26,7 @@ $ oc get packagemanifests -n openshift-marketplace metallb-operator
22
26
[source,terminal]
23
27
----
24
28
NAME CATALOG AGE
25
- metallb-operator Community Operators 9h
29
+ metallb-operator Red Hat Operators 9h
26
30
----
27
31
28
32
. Create the `metallb-system` namespace:
@@ -67,20 +71,6 @@ NAME AGE
67
71
metallb-operator 14m
68
72
----
69
73
70
- . Confirm the install plan is in the namespace:
71
- +
72
- [source,terminal]
73
- ----
74
- $ oc get installplan -n metallb-system
75
- ----
76
- +
77
- .Example output
78
- [source,terminal]
79
- ----
80
- NAME CSV APPROVAL APPROVED
81
- install-wzg94 metallb-operator.4.9.0-nnnnnnnnnnnn Automatic true
82
- ----
83
-
84
74
. Subscribe to the MetalLB Operator.
85
75
86
76
.. Run the following command to get the {product-title} major and minor version. You use the values to set the `channel` value in the next
@@ -105,11 +95,25 @@ metadata:
105
95
spec:
106
96
channel: "${OC_VERSION}"
107
97
name: metallb-operator
108
- source: community -operators
98
+ source: redhat -operators
109
99
sourceNamespace: openshift-marketplace
110
100
EOF
111
101
----
112
102
103
+ . Confirm the install plan is in the namespace:
104
+ +
105
+ [source,terminal]
106
+ ----
107
+ $ oc get installplan -n metallb-system
108
+ ----
109
+ +
110
+ .Example output
111
+ [source,terminal]
112
+ ----
113
+ NAME CSV APPROVAL APPROVED
114
+ install-wzg94 metallb-operator.4.9.0-nnnnnnnnnnnn Automatic true
115
+ ----
116
+
113
117
. To verify that the Operator is installed, enter the following command:
114
118
+
115
119
[source,terminal]
@@ -124,3 +128,4 @@ $ oc get clusterserviceversion -n metallb-system \
124
128
Name Phase
125
129
metallb-operator.4.9.0-nnnnnnnnnnnn Succeeded
126
130
----
131
+
0 commit comments