Skip to content

Commit

Permalink
Merge pull request #49 from varad-ahirwadkar/readme
Browse files Browse the repository at this point in the history
Updating README file to deploy RSCT
  • Loading branch information
Power Cloud Robot authored Oct 23, 2024
2 parents 72a8fe3 + fda6635 commit 39ca19d
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,41 +11,41 @@ The `RSCT` Operator enables RSCT on a cluster.
### Installing the `RSCT` Operator
Run the following command to deploy the `RSCT` Operator:
```sh
make deploy
oc create -k "https://github.com/ocp-power-automation/rsct-operator/config/default/?ref=main"
```

### Create `RSCT` resource
1. Switch to the `rsct-operator-system` namespace
1. Create the cluster role binding and `RSCT` resources
```sh
oc project rsct-operator-system
```

2. Create the cluster role binding and `RSCT` resources
```sh
oc apply -f config/samples/rsct_v1alpha1_rsct.yaml
oc create -k "https://github.com/ocp-power-automation/rsct-operator/config/samples/?ref=main"
```

### Check that the Operator is Running
Check that the pods have been created and are running
```sh
oc get pods
oc get pods -n rsct-operator-system
```

A readiness probe will check that each pod is running, which can take up to 10 minutes.

Output should be similar to the following
```
NAME READY STATUS RESTARTS AGE
rsct-operator-controller-manager-b8495fb5-kznsw 2/2 Running 0 10m
rsct-test-9qstd 1/1 Running 0 6m49s
rsct-test-gclb2 1/1 Running 0 6m49s
rsct-test-gcqjh 1/1 Running 0 6m49s
rsct-test-tbvdx 1/1 Running 0 6m49s
rsct-test-wt8x9 1/1 Running 0 6m49s
NAME READY STATUS RESTARTS AGE
rsct-6tbjw 1/1 Running 0 7s
rsct-fr8tv 1/1 Running 0 7s
rsct-h4lts 1/1 Running 0 7s
rsct-mxwgt 1/1 Running 0 7s
rsct-operator-controller-manager-5d4c458d86-xln94 2/2 Running 0 62s
rsct-rgvlm 1/1 Running 0 7s
```

### Removing the `RSCT` Operator
Run the following command to remove the `RSCT` Operator:
1. Remove the cluster role binding and `RSCT` resources
```sh
make undeploy
oc delete -k "https://github.com/ocp-power-automation/rsct-operator/config/samples/?ref=main"
```
2. Remove the `RSCT` Operator:
```
oc delete -k "https://github.com/ocp-power-automation/rsct-operator/config/default/?ref=main"
```

0 comments on commit 39ca19d

Please sign in to comment.