Revert "object: create cosi user for each object store"
This reverts commit a941b3c33f.
Stop creating the 'cosi' user in the CephObjectStore reconcile. This
step often fails for some amount of time during initial object store
creation, causing frequent user concern. It has also been the source of
some reported failures that would otherwise be non-breaking for certain
users.
Signed-off-by: Blaine Gardner <blaine.gardner@ibm.com>
This commit is contained in:
8 files changed
+93
-197
No files matched your search
@@ -33,6 +33,20 @@ metadata:
|
||||
namespace: rook-ceph
|
||||
spec:
|
||||
deploymentStrategy: "Auto"
|
||||
---
|
||||
# The Ceph-COSI driver needs a privileged user for each CephObjectStore
|
||||
# in order to provision buckets and users
|
||||
apiVersion: ceph.rook.io/v1
|
||||
kind: CephObjectStoreUser
|
||||
metadata:
|
||||
name: cosi
|
||||
namespace: rook-ceph # rook operator namespace
|
||||
spec:
|
||||
displayName: "cosi user"
|
||||
store: my-store # name of the CephObjectStore
|
||||
capabilities:
|
||||
bucket: "*"
|
||||
user: "*"
|
||||
```
|
||||
|
||||
```console
|
||||
@@ -40,13 +54,11 @@ cd deploy/examples/cosi
|
||||
kubectl create -f cephcosidriver.yaml
|
||||
```
|
||||
|
||||
The driver is created in the same namespace as Rook operator.
|
||||
|
||||
## Admin Operations
|
||||
|
||||
### Create a BucketClass and BucketAccessClass
|
||||
|
||||
The BucketClass and BucketAccessClass are CRDs defined by COSI. The BucketClass defines the bucket class for the bucket. The BucketAccessClass defines the access class for the bucket. Rook will automatically create a secret named with `rook-ceph-object-user-<store-name>-cosi` which contains credentials used by the COSI driver. This secret is referred by the BucketClass and BucketAccessClass as defined below:
|
||||
The BucketClass and BucketAccessClass are CRDs defined by COSI. The BucketClass defines the storage class for the bucket. The BucketAccessClass defines the access class for the bucket. The BucketClass and BucketAccessClass are defined as below:
|
||||
|
||||
```yaml
|
||||
kind: BucketClass
|
||||
@@ -58,7 +70,9 @@ deletionPolicy: Delete
|
||||
parameters:
|
||||
objectStoreUserSecretName: rook-ceph-object-user-my-store-cosi
|
||||
objectStoreUserSecretNamespace: rook-ceph
|
||||
---
|
||||
```
|
||||
|
||||
```yaml
|
||||
kind: BucketAccessClass
|
||||
apiVersion: objectstorage.k8s.io/v1alpha1
|
||||
metadata:
|
||||
@@ -74,6 +88,8 @@ parameters:
|
||||
kubectl create -f bucketclass.yaml -f bucketaccessclass.yaml
|
||||
```
|
||||
|
||||
The `objectStoreUserSecretName` and `objectStoreUserSecretNamespace` are the name and namespace of the CephObjectStoreUser created in the previous step.
|
||||
|
||||
## User Operations
|
||||
|
||||
### Create a Bucket
|
||||
|
||||
Reference in new issue
Block a user