doc: add object advanced config and vol mount example

Add a sample to the CephObjectStore Advanced configuration section which
shows how the new `rgwConfig` option can be used with the
`additionalVolumeMounts` setting.

Signed-off-by: Blaine Gardner <blaine.gardner@ibm.com>
(cherry picked from commit c845d36b20)
This commit is contained in:
Blaine Gardner authored and Mergify committed 2024-12-17 18:29:22 +00:00
1 parent eeb3aa1228
commit 80d11e66d4
1 file changed
+30
@@ -407,6 +407,36 @@ spec:
Once RGW debug logging is no longer needed, the values can simply be removed from the spec.
### Example - usage with `additionalVolumeMounts`
This sample configuration below demonstrates how advanced configuration can be used alongside
`additionalVolumeMounts`. This hypothetical scenario shows how a Kubernetes secret containing an
LDAP secret might be mounted to the RGW pod and how RGW would be configured to reference the mounted
secret file.
```yaml
# ...
gateway:
# ...
rgwConfig:
rgw_ldap_secret: /var/rgw/ldap/bindpass.secret
additionalVolumeMounts:
- subPath: ldap
volumeSource:
secret:
secretName: rgw-ldap
defaultMode: 0600
---
apiVersion: v1
kind: Secret
metadata:
name: rgw-ldap
namespace: rook-ceph
type: Opaque
data:
"bindpass.secret": aGVsbG8ud29ybGQK # hello.world
```
## Deleting a CephObjectStore
During deletion of a CephObjectStore resource, Rook protects against accidental or premature