CephDeployment custom resource#
This section describes how to configure a Ceph cluster using the CephDeployment
(cephdeployments.lcm.mirantis.com) custom resource (CR).
The CephDeployment CR spec specifies the nodes to deploy as Ceph components.
Based on the roles definitions in the CephDeployment CR, Pelagia Deployment Controller
automatically labels nodes for Ceph Monitors and Managers. Ceph OSDs are
deployed based on the devices parameter defined for each Ceph node.
For the default CephDeployment CR, see the following example:
Example configuration of Ceph specification
apiVersion: lcm.mirantis.com/v1alpha1
kind: CephDeployment
metadata:
name: pelagia-ceph
namespace: pelagia
spec:
cluster:
network:
addressRanges:
cluster:
- 10.12.0.0/24
public:
- 10.12.1.0/24
nodes:
- name: cluster-storage-controlplane-0
roles:
- mgr
- mon
- mds
- name: cluster-storage-controlplane-1
roles:
- mgr
- mon
- mds
- name: cluster-storage-controlplane-2
roles:
- mgr
- mon
- mds
- name: cluster-storage-worker-0
roles: []
devices:
- config:
deviceClass: ssd
fullPath: /dev/disk/by-id/scsi-1ATA_WDC_WDS100T2B0A-00SM50_200231434939
- name: cluster-storage-worker-1
roles: []
devices:
- config:
deviceClass: ssd
fullPath: /dev/disk/by-id/scsi-1ATA_WDC_WDS100T2B0A-00SM50_200231440912
- name: cluster-storage-worker-2
roles: []
devices:
- config:
deviceClass: ssd
fullPath: /dev/disk/by-id/scsi-1ATA_WDC_WDS100T2B0A-00SM50_200231443409
blockStorage:
pools:
- name: kubernetes
storageClassOpts:
default: true
spec:
deviceClass: ssd
replicated:
size: 3
objectStorage:
objectStores:
- name: rgw-store
spec:
dataPool:
deviceClass: ssd
replicated:
size: 3
metadataPool:
deviceClass: ssd
replicated:
size: 3
gateway:
instances: 3
port: 8081
securePort: 8443
preservePoolsOnDelete: false
sharedFilesystem:
cephFilesystems:
- name: cephfs-store
spec:
dataPools:
- name: cephfs-pool-1
deviceClass: ssd
replicated:
size: 3
metadataPool:
deviceClass: ssd
replicated:
size: 3
metadataServer:
activeCount: 1
Configure a Ceph cluster with CephDeployment#
-
Select from the following options:
- If you do not have a Ceph cluster yet, create
cephdeployment.yamlfor editing. - If the Ceph cluster is already deployed, open the
CephDeploymentCR for editing:
kubectl -n pelagia edit cephdpl - If you do not have a Ceph cluster yet, create
-
Set up the Ceph cluster using the configuration reference below.
-
Select from the following options:
-
If you are creating Ceph cluster, save the updated
CephDeploymenttemplate to the corresponding file and apply the file to a cluster:kubectl apply -f cephdeployment.yaml -
If you are editing
CephDeployment, save the changes and exit the text editor to apply it.
-
-
Verify the
CephDeploymentreconcile status. For a description of thestatusfields, refer to CephDeployment status.
CephDeployment configuration options#
The following subsections contain a description of CephDeployment parameters for an
advanced configuration.
Warning
CephDeployment has changed since version 1.x. Deprecated parameters are automatically migrated
to the new API fields during the Pelagia upgrade. No manual steps are required.
General parameters#
Warning
To avoid ambiguous behavior of Ceph daemons, do not specify
0.0.0.0/0 as the Ceph network. Otherwise, Ceph daemons can select
an incorrect interface that can cause the Ceph cluster to
become unavailable.
Note
A Ceph cluster supports multiple IP networks. For details, see Enable multinetworking.
Note
The Ceph cluster placement affinity and anti-affinity will be ignored in favor of the provided nodes roles.
-
cluster- Specifies the complete Ceph cluster configuration and represents the RookCephClusterobject specification. For available configuration options, see Rook documentation: CephCluster CRD and CephCluster API.Example configuration of cluster specification
spec: cluster: network: addressRanges: cluster: - 10.10.0.0/24 public: - 192.100.0.0/24 placement: mgr: tolerations: - effect: NoSchedule key: node-role.kubernetes.io/control-plane operator: Exists - key: node-role.kubernetes.io/master effect: NoSchedule operator: Exists mon: tolerations: - effect: NoSchedule key: node-role.kubernetes.io/control-plane operator: Exists - key: node-role.kubernetes.io/master effect: NoSchedule operator: Exists -
blockStorage- Specifies the Ceph block storage configuration. Contains thepoolsparameter that specifies the list of Ceph pools. For details, see Pools parameters. clients- Specifies the list of Ceph clients. For details, see Clients parameters.extraOpts- Enables specification of extra options for a Ceph cluster setup, includes thedeviceLabelsparameter. For details, see ExtraOpts parameters.nodes- Specifies the list of Ceph nodes with node specifications. Each list item can define a Ceph node specification for a single node or a group of nodes specified by an explicit list, a label, or a combination of both. For details, see Nodes parameters.objectStorage- Specifies the parameters for Object Storage, such as RADOS Gateway, the Ceph Object Storage, the RADOS Gateway Multisite configuration, and the Gateway API HTTPRoutes for public access to Object Storage. For details, see Object storage parameters.rbdMirror- Specifies the parameters for RBD mirroring. For details, see RBD Mirroring parameters.rookConfig- Specifies the string key-value that allows overriding Ceph configuration options. For details, see RookConfig parameters.sharedFilesystem- Enables Ceph Filesystem. For details, see CephFS parameters.
Deprecated top-level parameters migrated under cluster
The following top-level general parameters were moved under the cluster field during the CephDeployment API refactoring.
Their previous locations in the specification are deprecated.
If you continue using a deprecated location, the parameter is automatically migrated to its new location during CephDeployment reconciliation.
Using both the old and new locations simultaneously causes a reconciliation failure. Therefore, we highly recommend using the new specification structure.
network- Specifies access and public networks for the Ceph cluster.healthCheck- Configures health checks and liveness probe settings for Ceph daemons.mgr- Specifies the list of Ceph Manager modules to be enabled or disabled.dashboard- Intended to enable Ceph Dashboard. Currently, Pelagia does not support Ceph Dashboard.external- Enables external Ceph cluster mode. If enabled, Pelagia reads a dedicatedSecretcontaining the connection credentials for the external Ceph cluster.
Deprecated top-level parameters migrated to dedicated fields
pools- Specifies the list of Ceph pools. Automatically migrated toblockStorage.poolsduringCephDeploymentreconciliation.-
ingressConfig- Enables a custom ingress rule for public access to Ceph services, for example, Ceph RADOS Gateway. For details, see Configure Ceph Object Gateway TLS.Deprecated in favor of
objectStorage.gatewayHTTPRoutesdue to Ingress deprecation.
Nodes parameters#
-
name- Mandatory. Specifies the following:- If node spec implies to be deployed on a single node,
namestands for node name where Ceph node should be deployed. For example, it could becluster-storage-worker-0. - If node spec implies to be deployed on a group of nodes,
namestands for group name, for examplegroup-rack-1. In that case, Ceph node specification must contain eithernodeGroupornodesByLabelfields defined.
- If node spec implies to be deployed on a single node,
-
nodeGroup- Optional. Specifies the list of nodes and used for specifying Ceph node specification for a group of nodes from the list. For example:spec: nodes: - name: group-1 nodeGroup: [node-X, node-Y] -
nodesByLabel- Optional. Specifies label expression and used for specifying Ceph node specification for a group of nodes found by label. For example:spec: nodes: - name: group-1 nodesByLabel: "ceph-storage-node=true,!ceph-control-node" -
roles- Optional. Specifies themon,mgr,rgwormdsdaemon to be installed on a Ceph node. You can place the daemons on any nodes upon your decision. Consider the following recommendations:- The recommended number of Ceph Monitors in a Ceph cluster is 3.
Therefore, at least three Ceph nodes must contain the
monitem in therolesparameter. - The number of Ceph Monitors must be odd.
- Do not add more than three Ceph Monitors at a time and wait until the
Ceph cluster is
Readybefore adding more daemons. - For better HA and fault tolerance, the number of
mgrroles must equal the number ofmonroles. Therefore, we recommend labeling at least three Ceph nodes with themgrrole. - If
rgwroles are not specified, allrgwdaemons will spawn on the same nodes withmondaemons.
If a Ceph node contains a
monrole, the Ceph Monitor Pod deploys on this node.If a Ceph node contains a
mgrrole, it informs the Ceph Controller that a Ceph Manager can be deployed on the node. Rook Operator selects the first available node to deploy the Ceph Manager on it. Pelagia supports deploying two Ceph Managers in total: one active and one stand-by.If you assign the
mgrrole to three recommended Ceph nodes, one back-up Ceph node is available to redeploy a failed Ceph Manager in a case of a node outage. - The recommended number of Ceph Monitors in a Ceph cluster is 3.
Therefore, at least three Ceph nodes must contain the
-
monitorIP- Highly recommended for production and optional for staging deployments. If defined, specifies a custom IP address for Ceph Monitor which should be placed on the node. If not defined, Ceph Monitor on the node will use the defaulthostNetworkaddress of a node. We recommend using an IP address from the Ceph public network address range, which is defined in thepublicNetparameter.Note
To update
monitorIP, the corresponding Ceph Monitor daemon must be re-created. -
config- Mandatory. Specifies a map of device configurations that must contain a mandatorydeviceClassparameter set tohdd,ssd, ornvme. Applied for all OSDs on the current node. Can be overridden by theconfigparameter of each device defined in thedevicesparameter.For details, see Rook documentation: OSD config settings.
-
devices- Optional. Specifies the list of devices to use for Ceph OSD deployment. Includes the following parameters:Note
We recommend using the
fullPathfield for definingby-idsymlinks as persistent device identifiers. For details, see Addressing Ceph storage devices.-
fullPath- a storage device symlink. Accepts the following values:-
The device
by-idsymlink that contains the serial number of the physical device or containswwn. For example,/dev/disk/by-id/nvme-SAMSUNG_MZ1LB3T8HMLA-00007_S46FNY0R394543. -
The device
by-pathsymlink. For example,/dev/disk/by-path/pci-0000:00:11.4-ata-3. We do not recommend specifying storage devices with deviceby-pathsymlinks because such identifiers are not persistent and can change at node boot.
This parameter is mutually exclusive with
name. -
-
name- a storage device name. Accepts the following values:- The device name, for example,
sdc. We do not recommend specifying storage devices with device names because such identifiers are not persistent and can change at node boot. - The device
by-idsymlink that contains the serial number of the physical device or containswwn. For example,/dev/disk/by-id/nvme-SAMSUNG_MZ1LB3T8HMLA-00007_S46FNY0R394543. - The device label from
extraOpts.deviceLabelssection which is generally used for templating Ceph node specification for node groups. For details, see the ExtraOpts parameters section below.
This parameter is mutually exclusive with
fullPath. - The device name, for example,
-
config- a map of device configurations that must contain a mandatorydeviceClassparameter set tohdd,ssd, ornvme. The device class must be defined in a pool and can optionally contain a metadata device, for example:spec: nodes: - name: <node-a> devices: - fullPath: /dev/disk/by-id/scsi-SATA_HGST_HUS724040AL_PN1334PEHN18ZS config: deviceClass: hdd metadataDevice: /dev/meta-1/nvme-dev-1 osdsPerDevice: "2"The underlying storage format to use for Ceph OSDs is BlueStore.
The
metadataDeviceparameter accepts a device name or logical volume path for the BlueStore device. We recommend using logical volume paths created onnvmedevices.The
osdsPerDeviceparameter accepts the string-type natural numbers and allows splitting one device on several Ceph OSD daemons. We recommend using this parameter only forssdornvmedisks.
-
-
deviceFilter- Optional. Specifies regexp by names of devices to use for Ceph OSD deployment. Mutually exclusive withdevicesanddevicePathFilter. Requires theconfigparameter withdeviceClassspecified. For example:spec: nodes: - name: <node-a> deviceFilter: "^sd[def]$" config: deviceClass: hddFor more details, see Rook documentation: Storage selection settings.
-
devicePathFilter- Optional. Specifies regexp by paths of devices to use for Ceph OSD deployment. Mutually exclusive withdevicesanddeviceFilter. Requires theconfigparameter withdeviceClassspecified. For example:spec: nodes: - name: <node-a> devicePathFilter: "^/dev/disk/by-id/scsi-SATA.+$" config: deviceClass: hddFor more details, see Rook documentation: Storage selection settings.
-
crush- Optional. Specifies the explicit key-value CRUSH topology for a node. For details, see Ceph documentation: CRUSH maps. Includes the following parameters:datacenter- a physical data center that consists of rooms and handles data.room- a room that accommodates one or more racks with hosts.pdu- a power distribution unit (PDU) device that has multiple outputs and distributes electric power to racks located within a data center.row- a row of computing racks insideroom.rack- a computing rack that accommodates one or more hosts.chassis- a bare metal structure that houses or physically assembles hosts.region- the geographic location of one or more Ceph Object instances within one or more zones.zone- a logical group that consists of one or more Ceph Object instances.
Example configuration:
spec: nodes: - name: <node-a> crush: datacenter: dc1 room: room1 pdu: pdu1 row: row1 rack: rack1 chassis: ch1 region: region1 zone: zone1
Pools parameters#
The pools parameters contain the Ceph block pool specification that represents the Rook CephBlockPool specification.
name- Mandatory. Specifies the pool name as a prefix for each Ceph block pool. The resulting Ceph block pool name will be<name>-<deviceClass>.useAsFullName- Optional. Enables Ceph block pool to use only thenamevalue as a name. The resulting Ceph block pool name will be<name>without thedeviceClasssuffix.role- Optional. Specifies the pool role for Rockoon integration.preserveOnDelete- Optional. Enables skipping Ceph pool delete onpoolssection item removal. Ifpoolssection item removed with this flag enabled, relatedCephBlockPoolobject would be kept untouched and will require manual deletion on demand. Defaulted tofalse.-
storageClassOpts- Optional. Allows to configure parameters for storage class, created for RBD pool. Includes the following parameters:default- Optional. Defines whether the pool and dependent StorageClass must be set as default. Must be enabled only for one pool. Defaults tofalse.mapOptions- Optional. Not updatable as it applies only once. Specifies customrbd device mapoptions to use withStorageClassof a corresponding pool. Allows customizing the Kubernetes CSI driver interaction with Ceph RBD for the definedStorageClass. For available options, see Ceph documentation: Kernel RBD (KRBD) options.unmapOptions- Optional. Not updatable as it applies only once. Specifies customrbd device unmapoptions to use withStorageClassof a corresponding pool. Allows customizing the Kubernetes CSI driver interaction with Ceph RBD for the definedStorageClass. For available options, see Ceph documentation: Kernel RBD (KRBD) options.imageFeatures- Optional. Not updatable as it applies only once. Specifies is a comma-separated list of RBD image features, see Ceph documentation: Manage Rados block device (RBD) images.reclaimPolicy- Optional. Specifies reclaim policy for the underlyingStorageClassof the pool. AcceptsRetainandDeletevalues. Default isDeleteif not set.-
allowVolumeExpansion- Optional. Not updatable as it applies only once. Enables expansion of persistent volumes based onStorageClassof a corresponding pool. For details, see Kubernetes documentation: Resizing persistent volumes using Kubernetes.Note
A Kubernetes cluster only supports increase of storage size.
-
spec- Represents the RookCephBlockPoolspecification. For details see, Rook specifications: CephBlockPool CRD and CephBlockPool API.Note
If you are using the
replicatedtype of pool and need to use thetargetSizeRationparameter, we recommend defining the target ratio using theparameters.target_size_ratiostring field instead. For details, see Ceph documentation: Set Pool values.Note
Target ratios for the pools required for Rockoon are described in Integrate Pelagia with Rockoon.
Danger
We do not recommend using the following intermediate topology keys as a failure domain:
pdu,row, andchassis. Consider theracktopology instead. Theosdfailure domain is allowed only for single-node deployments.
Example configuration of pools specification
spec:
blockStorage:
pools:
- name: kubernetes
storageClassOpts:
default: true
spec:
deviceClass: hdd
replicated:
size: 3
parameters:
target_size_ratio: "10.0"
preserveOnDelete: true
- name: kubernetes
spec:
deviceClass: nvme
erasureCoded:
codingChunks: 1
dataChunks: 2
failureDomain: host
- name: archive
useAsFullName: true
spec:
deviceClass: hdd
failureDomain: rack
replicated:
size: 3
As a result of pools configuration, the following Ceph pools will be created: kubernetes-hdd, kubernetes-nvme, and archive.
To configure additional required pools for Rockoon, see Integrate Pelagia with Rockoon.
Danger
Since Ceph Pacific, Ceph CSI driver does not propagate the 777
permission on the mount point of persistent volumes based on any
StorageClass of the Ceph pool.
Clients parameters#
The clients parameters contain the Ceph client specification that represents the Rook CephClient specification.
name- Mandatory. Ceph client name.spec- Represents the RookCephClientspecification. For details see the following Rook documentation: CephClient CRD and CephClient API specification.
For details about Ceph client capabilities (caps), refer to Ceph documentation: Authorization (capabilities).
Example configuration of clients specification
spec:
clients:
- name: test-client
caps:
mon: allow r, allow command "osd blacklist"
osd: profile rbd pool=kubernetes-nvme
ObjectStorage parameters#
objectStores- List of CephObjectStorageRADOS Gateway (RGW) objects. EachobjectStoreitem represents the RookCephObjectStorespecification. For details, see RGW objectStores parameters.users- List of CephObjectStorageusers. Eachuseritem represents the RookCephObjectStoreUserspecification. For details, see RGW users parameters.realms- List of CephObjectStoragerealms. Eachrealmitem represents the RookCephObjectRealmsspecification. Currently, only one realm is supported, so the list must contain exactly one item. For details, see RGW multisite parameters.zonegroups- List of CephObjectStoragezone groups. Eachzonegroupitem represents the RookCephObjectZoneGroupspecification. Currently, only one zone group is supported, so the list must contain exactly one item. For details, see RGW multisite parameters.zones- List of CephObjectStoragezones. Eachzoneitem represents the RookCephObjectZonespecification. Currently, only one zone is supported, so the list must contain exactly one item. For details, see RGW multisite parameters..gatewayHTTPRoutes- List of Gateway API HTTP routes. Each item represents theHTTPRoutespecification. For details, see RGW HTTPRoutes.rgw- Single definition of the CephObjectStorageRGW object. Deprecated and automatically migrated toobjectStoresandusersfields duringCephDeploymentreconciliation.-
multiSite- Definition of CephObjectStorageRGW multisite configuration. Deprecated and automatically migrated to theobjectStoragefield duringCephDeploymentreconciliation. For example,multisite.realmsis migrated toobjectStorage.realms.Warning
The realm access keys defined in the deprecated
multiSite.realmsfield are removed from the spec during migration. For theobjectStorage.realmsfield on new deployments, the operator must manually create a new secret with realm keys. For the procedure, see Rook documentation: Getting Realm Access Key and Secret Key.
RGW objectStores parameters#
name- Mandatory. Ceph Object Storage instance name.usedForOpenstack- Optional. Enables consumption of the current Ceph RGW instance by OpenStack, which allows adding the required OpenStack parameters to the Ceph RGW configuration.auxiliaryService- Optional. Enables the current Ceph RGW instance to operate without aStorageClassand external API access. Useful for auxiliary instances, such as a Ceph RGW multisite replication daemon or an instance providing Ceph RGW admin API access.servedByIngress- Optional. Enables the current Ceph RGW instance to be used by the Ingress controller. Deprecated in favor of the Gateway APIHTTPRoutes.spec- Mandatory. Represents the RookCephObjectStorespecification. For details, see CephObjectStore CRD and CephObjectStore API specification.
Example configuration of RGW objectStores specification
spec:
objectStorage:
objectStores:
- name: rgw-store
spec:
dataPool:
deviceClass: hdd
erasureCoded:
codingChunks: 1
dataChunks: 2
failureDomain: host
metadataPool:
deviceClass: hdd
failureDomain: host
replicated:
size: 3
gateway:
instances: 3
port: 80
securePort: 8443
preservePoolsOnDelete: false
RGW users parameters#
The RGW users parameters represent the Rook CephObjectStoreUser specification.
For details, see Rook documentation: CephObjectStoreUser CRD.
Example configuration of RGW users specification
spec:
objectStorage:
objectStores:
- name: rgw-store
...
users:
- name: user-a
spec:
store: rgw-store
capabilities:
bucket: '*'
metadata: read
user: read
displayName: user-a
quotas:
maxBuckets: 10
maxSize: 10G
RGW multisite parameters#
-
realms- List of realms to use. Each item represents the RookCephObjectRealmspecification.name- Mandatory. The realm name.spec- Specification ofCephObjectRealm. For details, see CephObjectRealm CRD.
-
zonegroups- List of zone groups for realms. Each item represents the RookCephObjectZoneGroupspecification.name- Mandatory. The zone group name.spec- Specification ofCephObjectZoneGroup. For details, see CephObjectZoneGroup CRD.
-
zones- List of zones used within one zone group. Each item represents the RookCephObjectZonespecification.name- Mandatory. The zone name.spec- Specification ofCephObjectZone. For details, see CephObjectZone CRD.
For configuration example, see Enable Multisite for Ceph Object Storage.
RGW gatewayHTTPRoutes parameters#
Warning
Before enabling Gateway HTTPRoutes, the operator must configure the Gateway object and controller. For details, see Kubernetes Gateway API documentation.
The gatewayHTTPRoutes parameters represent the Gateway API HTTPRoute specification.
name- Name ofHTTPRoute. Mandatory.objectStoreName- Name of the relatedCephObjectStoreobject. Mandatory.spec- Represents the Gateway APIHTTPRoutespecification. For details, see Gateway API documentation: HTTPRoute.
Example configuration of gatewayHTTPRoutes specification
spec:
objectStorage:
gatewayHTTPRoutes:
- name: route-1
objectStoreName: rgw-store
spec:
hostnames:
- rgw-store.custom.dns.name
objectStores:
- name: rgw-store
spec:
...
hosting:
dnsNames:
- rgw-store.custom.dns.name
...
CephFilesystems parameters#
cephFS- Contains a list of Ceph file systems. Deprecated, automatically migrated to thecephFilesystemsfield duringCephDeploymentreconciliation.-
cephFilesystems- Contains a list of Ceph file systems. EachcephFilesystemitem represents the RookCephFilesystemspecification:name- Mandatory. CephFS instance name.-
spec- Represents the RookCephFilesystemspecification. For details, refer to the following Rook documentation: CephFilesystem CRD and CephFilesystem API specification.Note
The CephFS metadata pool must be only of the
replicatedtype.Note
The first pool in the list is treated as the default data pool for CephFS and must always be
replicated.
The number of data pools is unlimited, but the default pool must always be present as illustrated in the following example. The
replicated.sizefield defines the number of full copies of data on multiple nodes.Example configuration of dataPools
spec: sharedFilesystem: cephFilesystems: - name: cephfs-store spec: dataPools: - name: default-pool deviceClass: ssd replicated: size: 3 failureDomain: host - name: second-pool deviceClass: hdd failureDomain: rack erasureCoded: dataChunks: 2 codingChunks: 1 metadataServer: activeCount: 1 activeStandby: false resources: # example, non-prod values requests: memory: 1Gi cpu: 1 limits: memory: 2Gi cpu: 2Warning
When using the non-recommended Ceph pools
replicated.sizeof less than3, Ceph OSD removal cannot be performed. The minimum replica size equals a rounded up half of the specifiedreplicated.size.For example, if
replicated.sizeis2, the minimal replica size is1, and ifreplicated.sizeis3, then the minimal replica size is2. The replica size of1allows Ceph having PGs with only one Ceph OSD in theactingstate, which may cause aPG_TOO_DEGRADEDhealth warning that blocks Ceph OSD removal. Mirantis recommends settingreplicated.sizeto3for each Ceph pool.Warning
Modifying pools on a deployed CephFS has no effect. You can manually adjust pool settings through the Ceph CLI. However, for any changes in pools, we recommend re-creating CephFS.
Example configuration of sharedFilesystem specification
spec:
sharedFilesystem:
cephFilesystems:
- name: cephfs-store
spec:
dataPools:
- name: cephfs-pool-1
deviceClass: hdd
replicated:
size: 3
failureDomain: host
metadataPool:
deviceClass: nvme
replicated:
size: 3
failureDomain: host
metadataServer:
activeCount: 1
RookConfig parameters#
RookConfig is a string key-value parameter that allows overriding Ceph configuration options.
Use the | delimiter to specify the section where a parameter
must be placed. For example, mon or osd. And, if required,
use the . delimiter to specify the exact number of the Ceph OSD or
Ceph Monitor to apply an option to a specific mon or osd and
override the configuration of the corresponding section.
The use of this option enables restart of only specific daemons related
to the corresponding section. If you do not specify the section,
a parameter is set in the global section, which includes restart
of all Ceph daemons except Ceph OSD.
spec:
rookConfig:
"osd_max_backfills": "64"
"mon|mon_health_to_clog": "true"
"osd|osd_journal_size": "8192"
"osd.14|osd_journal_size": "6250"
ExtraOpts parameters#
-
deviceLabels- Optional. A key-value mapping which is used to assign a specification label to any available device on a specific node. These labels can then be used for thenodessection items withnodeGroupornodesByLabeldefined to eliminate the need to specify different devices for each node individually. Additionally, it helps in avoiding the use of device names, facilitating the grouping of nodes with similar labels.Example usage:
spec: extraOpts: deviceLabels: <node-name>: <dev-label>: /dev/disk/by-id/<unique_ID> ... <dev-label-n>: /dev/disk/by-id/<unique_ID> ... <node-name-n>: <dev-label>: /dev/disk/by-id/<unique_ID> ... <dev-label-n>: /dev/disk/by-id/<unique_ID> nodes: - name: <group-name> devices: - name: <dev_label> - name: <dev_label_n> nodes: - <node_name> - <node_name_n> -
customDeviceClasses- Deprecated and automatically removed during cluster update. List of custom device class names to use in the specification. The parameter no longer has any effect because you can set custom device classes in the node specification directly.
RBD mirroring parameters#
daemonsCount- Number ofrbd-mirrordaemons to spawn. We recommend using one instance of therbd-mirrordaemon.-
peers- Optional. List of mirroring peers of an external cluster to connect to. Only a single peer is supported. Thepeersection includes the following parameters:site- Label of a remote Ceph cluster associated with the token.token- Token to be used by one site (Ceph cluster) to pull images from another site. To obtain the token, use therbd mirror pool peer bootstrap createcommand.pools- Optional. A list of pool names to mirror.
Status fields#
phase- Current handling phase of the applied Ceph cluster spec. Can equal toCreating,Deploying,Validation,Ready,Deleting,OnHoldorFailed.message- Detailed description of the current phase or an error message if the phase isFailed.lastRun-DateTimeof the previous spec reconciliation.clusterVersion- Current Ceph cluster version, for example,v19.2.3.-
validation- Validation result (SucceedorFailed) of the spec with a list of messages, if any. Thevalidationsection includes the following fields:result-SucceedorFailedmessages- List of error messageslastValidatedGeneration- Last validatedmetadata.generationofCephDeployment
-
objRefs- Pelagia API object references such asCephDeploymentHealthandCephDeploymentSecret.