If you need S3 endpoints for Quay, Kafka etc in a small-scale OpenShift lab environment you can easily deploy ceph-nano to satisfy that need. Working example can be found from here.
Just follow the next steps and you are good to go. Instructions are tested with OCP 4.6 and 4.7.
Original instructions how to run ceph-nano on Kubernetes can be found from the project website.
It's good to be aware
cn kube
generates a broken yaml and it will take while to fix everything (indendations, doubles and so on)
Follow next instructions: https://examples.openshift.pub/deploy/scc-anyuid/
registry.access.redhat.com/rhceph/rhceph-3-rhel7
RGW_NAME - value must match with route host name
oc login
oc apply -f deploy_ceph-nano.yml -n your-ns
s3cmd --configure
and change following values:
New settings:
Access Key: userkey
Secret Key: secretkey
Default Region: us-east-1
S3 Endpoint: your.ceph.nano.host.name
DNS-style bucket+hostname:port template for accessing a bucket: your.ceph.nano.host.name
Use HTTPS protocol: True
s3cmd mb s3://foobucket
date > test.txt
s3cmd put ./test.txt s3://foobucket
s3cmd ls s3://foobucket
s3cmd get s3://foobucket/test.txt froms3.txt