Skip to content

Commit 52b0b98

Browse files
Adding instructions to deploy on OCP clusters
Signed-off-by: Varad Ahirwadkar <[email protected]>
1 parent 4aad833 commit 52b0b98

File tree

1 file changed

+105
-0
lines changed

1 file changed

+105
-0
lines changed

docs/Install.md

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
## RSCT Deployment on OpenShift Clusters
2+
3+
### Prerequisites for OpenShift Clusters
4+
- OpenShift cluster with at least one Power node and admin access.
5+
- Create a CatalogSource using the image `ghcr.io/ocp-power-automation/rsct-operator-catalog:latest` in the `openshift-marketplace` namespace.
6+
```
7+
oc create -f - <<EOF
8+
apiVersion: operators.coreos.com/v1alpha1
9+
kind: CatalogSource
10+
metadata:
11+
name: rsct-catalogsource
12+
namespace: openshift-marketplace
13+
spec:
14+
displayName: RSCT Operator
15+
publisher: IBM
16+
sourceType: grpc
17+
image: ghcr.io/ocp-power-automation/rsct-operator-catalog:latest
18+
EOF
19+
```
20+
- Use `rsct-operator-system` namespace for RSCT deployment.
21+
22+
### Operator Deployment
23+
1. Create the `rsct-operator-system` namespace
24+
```
25+
oc create -f - <<EOF
26+
apiVersion: v1
27+
kind: Namespace
28+
metadata:
29+
name: rsct-operator-system
30+
EOF
31+
```
32+
33+
2. Create an OperatorGroup for the RSCT Operator
34+
```
35+
oc create -f - <<EOF
36+
apiVersion: operators.coreos.com/v1
37+
kind: OperatorGroup
38+
metadata:
39+
name: rsct-operator-operatorgroup
40+
namespace: rsct-operator-system
41+
spec:
42+
targetNamespaces:
43+
- rsct-operator-system
44+
EOF
45+
```
46+
47+
3. Create an Subscription for the RSCT Operator
48+
```
49+
oc create -f - <<EOF
50+
apiVersion: operators.coreos.com/v1alpha1
51+
kind: Subscription
52+
metadata:
53+
name: rsct-operator-subscription
54+
namespace: rsct-operator-system
55+
spec:
56+
channel: "alpha"
57+
installPlanApproval: Automatic
58+
name: rsct-operator
59+
source: rsct-catalogsource
60+
sourceNamespace: openshift-marketplace
61+
EOF
62+
```
63+
64+
4. Verify the operator deployment
65+
```
66+
# oc get csv -n rsct-operator-system
67+
NAME DISPLAY VERSION REPLACES PHASE
68+
rsct-operator.v0.0.1-alpha2 RSCT Operator for IBM Power Systems 0.0.1-alpha2 Succeeded
69+
70+
# oc get pods -n rsct-operator-system
71+
NAME READY STATUS RESTARTS AGE
72+
rsct-operator-controller-manager-7978b6f4cd-kjsmd 2/2 Running 0 28s
73+
```
74+
75+
### Create the Custom Resource
76+
After deploying the operator, you must create an RSCT object. The following example will create an RSCT instance.
77+
```
78+
oc create -f - <<EOF
79+
apiVersion: rsct.ibm.com/v1alpha1
80+
kind: RSCT
81+
metadata:
82+
name: rsct
83+
namespace: rsct-operator-system
84+
spec: {}
85+
EOF
86+
```
87+
88+
The RSCT image can be configured in the spec.
89+
```
90+
spec:
91+
image: quay.io/powercloud/rsct-ppc64le:latest
92+
```
93+
Default image is `quay.io/powercloud/rsct-ppc64le:latest`
94+
95+
**Verify the RSCT deployment:**
96+
```
97+
# oc get pods -n rsct-operator-system
98+
NAME READY STATUS RESTARTS AGE
99+
rsct-brs49 1/1 Running 0 13s
100+
rsct-c2q54 1/1 Running 0 13s
101+
rsct-mvfm4 1/1 Running 0 13s
102+
rsct-mwbn6 1/1 Running 0 13s
103+
rsct-operator-controller-manager-7978b6f4cd-kjsmd 2/2 Running 0 66s
104+
rsct-r6tdl 1/1 Running 0 13s
105+
```

0 commit comments

Comments
 (0)