Skip to content

Commit d731017

Browse files
author
Steven Smith
committed
Updates Ceph IR docs due to change in ODF
1 parent 6d22563 commit d731017

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

modules/registry-configuring-registry-storage-rhodf-cephrgw.adoc

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ cat <<EOF | oc apply -f -
3535
apiVersion: objectbucket.io/v1alpha1
3636
kind: ObjectBucketClaim
3737
metadata:
38-
name: rgwtest
38+
name: rgwbucket
3939
namespace: openshift-storage <1>
4040
spec:
4141
storageClassName: ocs-storagecluster-ceph-rgw
42-
generateBucketName: rgwtest
42+
generateBucketName: rgwbucket
4343
EOF
4444
----
4545
<1> Alternatively, you can use the `openshift-image-registry` namespace.
@@ -48,19 +48,19 @@ EOF
4848
+
4949
[source,terminal]
5050
----
51-
$ bucket_name=$(oc get obc -n openshift-storage rgwtest -o jsonpath='{.spec.bucketName}')
51+
$ bucket_name=$(oc get obc -n openshift-storage rgwbucket -o jsonpath='{.spec.bucketName}')
5252
----
5353

5454
. Get the AWS credentials by entering the following commands:
5555
+
5656
[source,terminal]
5757
----
58-
$ AWS_ACCESS_KEY_ID=$(oc get secret -n openshift-storage rgwtest -o yaml | grep -w "AWS_ACCESS_KEY_ID:" | head -n1 | awk '{print $2}' | base64 --decode)
58+
$ AWS_ACCESS_KEY_ID=$(oc get secret -n openshift-storage rgwbucket -o jsonpath='{.data.AWS_ACCESS_KEY_ID}' | base64 --decode)
5959
----
6060
+
6161
[source,terminal]
6262
----
63-
$ AWS_SECRET_ACCESS_KEY=$(oc get secret -n openshift-storage rgwtest -o yaml | grep -w "AWS_SECRET_ACCESS_KEY:" | head -n1 | awk '{print $2}' | base64 --decode)
63+
$ AWS_SECRET_ACCESS_KEY=$(oc get secret -n openshift-storage rgwbucket -o jsonpath='{.data.AWS_SECRET_ACCESS_KEY}' | base64 --decode)
6464
----
6565

6666
. Create the secret `image-registry-private-configuration-user` with the AWS credentials for the new bucket under `openshift-image-registry project` by entering the following command:
@@ -70,19 +70,14 @@ $ AWS_SECRET_ACCESS_KEY=$(oc get secret -n openshift-storage rgwtest -o yaml | g
7070
$ oc create secret generic image-registry-private-configuration-user --from-literal=REGISTRY_STORAGE_S3_ACCESSKEY=${AWS_ACCESS_KEY_ID} --from-literal=REGISTRY_STORAGE_S3_SECRETKEY=${AWS_SECRET_ACCESS_KEY} --namespace openshift-image-registry
7171
----
7272

73-
. Create a encryption route for Ceph RGW by entering the following command:
73+
. Get the `buckethost` value by entering the following command:
7474
+
7575
[source,terminal]
7676
----
77-
$ oc create route reencrypt <route_name> --service=rook-ceph-rgw-ocs-storagecluster-cephobjectstore --port=https -n openshift-storage
77+
$ route_host=$(oc get objectbucket $bucket_name -n openshift-storage -o=jsonpath='{.spec.endpoint.bucketHost}')
7878
----
7979
+
80-
.. Get the route host by entering the following command:
81-
+
82-
[source,terminal]
83-
----
84-
$ route_host=$(oc get route <route_name> -n openshift-storage -o=jsonpath='{.spec.host}')
85-
----
80+
8681
. Create a config map that uses an ingress certificate by entering the following commands:
8782
+
8883
[source,terminal]

0 commit comments

Comments
 (0)