11
11
12
12
.Procedure
13
13
14
- . Create a `Namespace` object YAML file by running :
14
+ . Define a `Namespace` object:
15
15
+
16
- [source,terminal]
17
- ----
18
- $ oc create -f <file-name>.yaml
19
- ----
20
- +
21
- .Example output
16
+ .Example `namespace-object.yaml`
22
17
[source,yaml]
23
18
----
24
19
apiVersion: v1
@@ -28,15 +23,16 @@ metadata:
28
23
openshift.io/cluster-monitoring: "true"
29
24
name: openshift-compliance
30
25
----
31
-
32
- . Create the `OperatorGroup` object YAML file by running:
26
+ . Create the `Namespace` object:
33
27
+
34
28
[source,terminal]
35
29
----
36
- $ oc create -f <file-name> .yaml
30
+ $ oc create -f namespace-object .yaml
37
31
----
32
+
33
+ . Define an `OperatorGroup` object:
38
34
+
39
- .Example output
35
+ .Example `operator-group-object.yaml`
40
36
[source,yaml]
41
37
----
42
38
apiVersion: operators.coreos.com/v1
@@ -49,14 +45,16 @@ spec:
49
45
- openshift-compliance
50
46
----
51
47
52
- . Create the `Subscription ` object YAML file by running :
48
+ . Create the `OperatorGroup ` object:
53
49
+
54
50
[source,terminal]
55
51
----
56
- $ oc create -f <file-name> .yaml
52
+ $ oc create -f operator-group-object .yaml
57
53
----
54
+
55
+ . Define a `Subscription` object:
58
56
+
59
- .Example output
57
+ .Example `subscription-object.yaml`
60
58
[source,yaml]
61
59
----
62
60
apiVersion: operators.coreos.com/v1alpha1
71
69
source: redhat-operators
72
70
sourceNamespace: openshift-marketplace
73
71
----
72
+ . Create the `Subscription` object:
73
+ +
74
+ [source,terminal]
75
+ ----
76
+ $ oc create -f subscription-object.yaml
77
+ ----
74
78
75
79
[NOTE]
76
80
====
0 commit comments