The built-in pools device_health_metrics and .nfs created by ceph
need to be configured for replicas, failure domain, etc.
To support this, we allow the pool to be created as a CR.
Since K8s does not support underscores in the resource names
the operator must translate this special pool name into
the name expected by ceph.
This also sets the basis for allowing filesystem data
pools to specify the desired pool name instead of requiring
a generated name.
Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 7ee9cc9d56)
29 lines
719 B
YAML
29 lines
719 B
YAML
apiVersion: ceph.rook.io/v1
|
|
kind: CephNFS
|
|
metadata:
|
|
name: my-nfs
|
|
namespace: rook-ceph # namespace:cluster
|
|
spec:
|
|
# this setting is ignored for Ceph v16+
|
|
rados:
|
|
pool: myfs-replicated
|
|
namespace: nfs-ns
|
|
# Settings for the NFS server
|
|
server:
|
|
# the number of active NFS servers
|
|
active: 1
|
|
# The logging levels: NIV_NULL | NIV_FATAL | NIV_MAJ | NIV_CRIT | NIV_WARN | NIV_EVENT | NIV_INFO | NIV_DEBUG | NIV_MID_DEBUG |NIV_FULL_DEBUG |NB_LOG_LEVEL
|
|
logLevel: NIV_INFO
|
|
---
|
|
apiVersion: ceph.rook.io/v1
|
|
kind: CephBlockPool
|
|
metadata:
|
|
name: builtin-nfs
|
|
namespace: rook-ceph # namespace:cluster
|
|
spec:
|
|
name: .nfs
|
|
failureDomain: host
|
|
replicated:
|
|
size: 1
|
|
requireSafeReplicaSize: false
|