- download CRC from here
note that you would need a Red Hat Developer account. But there is no subscriptions needed for CRC
- CRC requires a "pull secret" taken from the download page for
crc startto work
if CRC is already running use:
crc deletefirst
- CRC doesn’t provide any additional disk so users on linux can try something following to make it work:
qemu-img create -f raw crc-extra-disk 30G
sudo virsh attach-disk crc --source /full/path/to/crc-extra-disk --target vdb --cache nonenote: no restart is needed for CRC
- now use "oc" to login to CRC
oc login -u <user> -p <password> https://api.crc.testing:6443- to see the user/passowrd use:
crc console --credentials- after CRC is up and running, you can use the following to install Rook:
oc apply -f https://raw.githubusercontent.com/rook/rook/master/deploy/examples/crds.yaml
oc apply -f https://raw.githubusercontent.com/rook/rook/master/deploy/examples/common.yaml
oc apply -f https://raw.githubusercontent.com/rook/rook/master/deploy/examples/operator-openshift.yaml- and the Rook resources (cluster and object store):
oc apply -f https://raw.githubusercontent.com/rook/rook/master/deploy/examples/cluster-test.yaml
oc apply -f https://raw.githubusercontent.com/rook/rook/master/deploy/examples/object-test.yaml- use
oc get pods -n rook-cephto make sure that the: MONs, OSDs and RGW are running - now create the bucket, the topic and the notifications:
oc apply -f https://raw.githubusercontent.com/rook/rook/master/deploy/examples/storageclass-bucket-delete.yaml
oc apply -f https://raw.githubusercontent.com/rook/rook/master/deploy/examples/object-bucket-claim-delete.yaml
Ceph Object Store resource which is created by
oc apply -f https://raw.githubusercontent.com/rook/rook/release-1.8/deploy/examples/object-test.yamlonly use insecure port80. rook/rook#9565 is merged recently which enable controllers for notification and topics if the request is sent to TLS enabled RGW endpoints. This PR is still not part of the 1.8 release so we have to use master branch for test.Then we use secure port for object store resource.
Check the pods in
rook-cephnamespace to make sure all the pods are running.Object bucket Claim (OBC) in Rook
Based on the OBC configuration doc and the notification configuration doc. Let's create a storage class, and a bucket preconfigured with a notification:
Create bucket notifications as mentioned https://ceph.io/en/news/blog/2022/bucket-notifications-with-knative-and-rook-on-minikube2/#bucket-notifications here.
External Access
Openshift provide routes (ingress) to make available of a service.
user credentials should be fetched using https://ceph.io/en/news/blog/2022/bucket-notifications-with-knative-and-rook-on-minikube2/#user-credentials one.
Upload a file to ceph storage.
you can download the aws client binary from https://docs.aws.amazon.com/cli/v1/userguide/install-linux.html