ceph-values.yaml 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730
  1. # Default values for a single rook-ceph cluster
  2. # This is a YAML-formatted file.
  3. # Declare variables to be passed into your templates.
  4. # -- Namespace of the main rook operator
  5. operatorNamespace: rook-ceph
  6. # -- The metadata.name of the CephCluster CR
  7. # @default -- The same as the namespace
  8. clusterName:
  9. # -- Optional override of the target kubernetes version
  10. kubeVersion:
  11. # -- Cluster ceph.conf override
  12. configOverride:
  13. # configOverride: |
  14. # [global]
  15. # mon_allow_pool_delete = true
  16. # osd_pool_default_size = 3
  17. # osd_pool_default_min_size = 2
  18. # Installs a debugging toolbox deployment
  19. toolbox:
  20. # -- Enable Ceph debugging pod deployment. See [toolbox](../Troubleshooting/ceph-toolbox.md)
  21. enabled: true
  22. # -- Toolbox image, defaults to the image used by the Ceph cluster
  23. image: #quay.io/ceph/ceph:v17.2.6
  24. # -- Toolbox tolerations
  25. tolerations: []
  26. # -- Toolbox affinity
  27. affinity: {}
  28. # -- Toolbox container security context
  29. containerSecurityContext:
  30. runAsNonRoot: true
  31. runAsUser: 2016
  32. runAsGroup: 2016
  33. capabilities:
  34. drop: ["ALL"]
  35. # -- Toolbox resources
  36. resources:
  37. limits:
  38. cpu: "500m"
  39. memory: "1Gi"
  40. requests:
  41. cpu: "100m"
  42. memory: "128Mi"
  43. # -- Set the priority class for the toolbox if desired
  44. priorityClassName:
  45. monitoring:
  46. # -- Enable Prometheus integration, will also create necessary RBAC rules to allow Operator to create ServiceMonitors.
  47. # Monitoring requires Prometheus to be pre-installed
  48. enabled: false
  49. # -- Whether to create the Prometheus rules for Ceph alerts
  50. createPrometheusRules: false
  51. # -- The namespace in which to create the prometheus rules, if different from the rook cluster namespace.
  52. # If you have multiple rook-ceph clusters in the same k8s cluster, choose the same namespace (ideally, namespace with prometheus
  53. # deployed) to set rulesNamespaceOverride for all the clusters. Otherwise, you will get duplicate alerts with multiple alert definitions.
  54. rulesNamespaceOverride:
  55. # Monitoring settings for external clusters:
  56. # externalMgrEndpoints: <list of endpoints>
  57. # externalMgrPrometheusPort: <port>
  58. # allow adding custom labels and annotations to the prometheus rule
  59. prometheusRule:
  60. # -- Labels applied to PrometheusRule
  61. labels: {}
  62. # -- Annotations applied to PrometheusRule
  63. annotations: {}
  64. # -- Create & use PSP resources. Set this to the same value as the rook-ceph chart.
  65. pspEnable: false
  66. # imagePullSecrets option allow to pull docker images from private docker registry. Option will be passed to all service accounts.
  67. # imagePullSecrets:
  68. # - name: my-registry-secret
  69. # All values below are taken from the CephCluster CRD
  70. # -- Cluster configuration.
  71. # @default -- See [below](#ceph-cluster-spec)
  72. cephClusterSpec:
  73. # This cluster spec example is for a converged cluster where all the Ceph daemons are running locally,
  74. # as in the host-based example (cluster.yaml). For a different configuration such as a
  75. # PVC-based cluster (cluster-on-pvc.yaml), external cluster (cluster-external.yaml),
  76. # or stretch cluster (cluster-stretched.yaml), replace this entire `cephClusterSpec`
  77. # with the specs from those examples.
  78. # For more details, check https://rook.io/docs/rook/v1.10/CRDs/Cluster/ceph-cluster-crd/
  79. cephVersion:
  80. # The container image used to launch the Ceph daemon pods (mon, mgr, osd, mds, rgw).
  81. # v16 is Pacific, v17 is Quincy.
  82. # RECOMMENDATION: In production, use a specific version tag instead of the general v16 flag, which pulls the latest release and could result in different
  83. # versions running within the cluster. See tags available at https://hub.docker.com/r/ceph/ceph/tags/.
  84. # If you want to be more precise, you can always use a timestamp tag such quay.io/ceph/ceph:v15.2.11-20200419
  85. # This tag might not contain a new Ceph version, just security fixes from the underlying operating system, which will reduce vulnerabilities
  86. image: quay.io/ceph/ceph:v17.2.6
  87. # Whether to allow unsupported versions of Ceph. Currently `pacific`, `quincy`, and `reef` are supported.
  88. # Future versions such as `squid` (v19) would require this to be set to `true`.
  89. # Do not set to true in production.
  90. allowUnsupported: false
  91. # The path on the host where configuration files will be persisted. Must be specified.
  92. # Important: if you reinstall the cluster, make sure you delete this directory from each host or else the mons will fail to start on the new cluster.
  93. # In Minikube, the '/data' directory is configured to persist across reboots. Use "/data/rook" in Minikube environment.
  94. dataDirHostPath: /var/lib/rook
  95. # Whether or not upgrade should continue even if a check fails
  96. # This means Ceph's status could be degraded and we don't recommend upgrading but you might decide otherwise
  97. # Use at your OWN risk
  98. # To understand Rook's upgrade process of Ceph, read https://rook.io/docs/rook/v1.10/Upgrade/ceph-upgrade/
  99. skipUpgradeChecks: false
  100. # Whether or not continue if PGs are not clean during an upgrade
  101. continueUpgradeAfterChecksEvenIfNotHealthy: false
  102. # WaitTimeoutForHealthyOSDInMinutes defines the time (in minutes) the operator would wait before an OSD can be stopped for upgrade or restart.
  103. # If the timeout exceeds and OSD is not ok to stop, then the operator would skip upgrade for the current OSD and proceed with the next one
  104. # if `continueUpgradeAfterChecksEvenIfNotHealthy` is `false`. If `continueUpgradeAfterChecksEvenIfNotHealthy` is `true`, then operator would
  105. # continue with the upgrade of an OSD even if its not ok to stop after the timeout. This timeout won't be applied if `skipUpgradeChecks` is `true`.
  106. # The default wait timeout is 10 minutes.
  107. waitTimeoutForHealthyOSDInMinutes: 10
  108. mon:
  109. # Set the number of mons to be started. Generally recommended to be 3.
  110. # For highest availability, an odd number of mons should be specified.
  111. count: 3
  112. # The mons should be on unique nodes. For production, at least 3 nodes are recommended for this reason.
  113. # Mons should only be allowed on the same node for test environments where data loss is acceptable.
  114. allowMultiplePerNode: false
  115. mgr:
  116. # When higher availability of the mgr is needed, increase the count to 2.
  117. # In that case, one mgr will be active and one in standby. When Ceph updates which
  118. # mgr is active, Rook will update the mgr services to match the active mgr.
  119. count: 2
  120. allowMultiplePerNode: false
  121. modules:
  122. # Several modules should not need to be included in this list. The "dashboard" and "monitoring" modules
  123. # are already enabled by other settings in the cluster CR.
  124. - name: pg_autoscaler
  125. enabled: true
  126. # enable the ceph dashboard for viewing cluster status
  127. dashboard:
  128. enabled: true
  129. # serve the dashboard under a subpath (useful when you are accessing the dashboard via a reverse proxy)
  130. urlPrefix: /ceph-dashboard
  131. # serve the dashboard at the given port.
  132. port: 8443
  133. # Serve the dashboard using SSL (if using ingress to expose the dashboard and `ssl: true` you need to set
  134. # the corresponding "backend protocol" annotation(s) for your ingress controller of choice)
  135. ssl: false
  136. # ssl: true
  137. # Network configuration, see: https://github.com/rook/rook/blob/master/Documentation/CRDs/ceph-cluster-crd.md#network-configuration-settings
  138. network:
  139. connections:
  140. # Whether to encrypt the data in transit across the wire to prevent eavesdropping the data on the network.
  141. # The default is false. When encryption is enabled, all communication between clients and Ceph daemons, or between Ceph daemons will be encrypted.
  142. # When encryption is not enabled, clients still establish a strong initial authentication and data integrity is still validated with a crc check.
  143. # IMPORTANT: Encryption requires the 5.11 kernel for the latest nbd and cephfs drivers. Alternatively for testing only,
  144. # you can set the "mounter: rbd-nbd" in the rbd storage class, or "mounter: fuse" in the cephfs storage class.
  145. # The nbd and fuse drivers are *not* recommended in production since restarting the csi driver pod will disconnect the volumes.
  146. encryption:
  147. enabled: false
  148. # Whether to compress the data in transit across the wire. The default is false.
  149. # Requires Ceph Quincy (v17) or newer. Also see the kernel requirements above for encryption.
  150. compression:
  151. enabled: false
  152. # Whether to require communication over msgr2. If true, the msgr v1 port (6789) will be disabled
  153. # and clients will be required to connect to the Ceph cluster with the v2 port (3300).
  154. # Requires a kernel that supports msgr v2 (kernel 5.11 or CentOS 8.4 or newer).
  155. requireMsgr2: false
  156. # # enable host networking
  157. provider: host
  158. # # EXPERIMENTAL: enable the Multus network provider
  159. # provider: multus
  160. # selectors:
  161. # # The selector keys are required to be `public` and `cluster`.
  162. # # Based on the configuration, the operator will do the following:
  163. # # 1. if only the `public` selector key is specified both public_network and cluster_network Ceph settings will listen on that interface
  164. # # 2. if both `public` and `cluster` selector keys are specified the first one will point to 'public_network' flag and the second one to 'cluster_network'
  165. # #
  166. # # In order to work, each selector value must match a NetworkAttachmentDefinition object in Multus
  167. # #
  168. # # public: public-conf --> NetworkAttachmentDefinition object name in Multus
  169. # # cluster: cluster-conf --> NetworkAttachmentDefinition object name in Multus
  170. # # Provide internet protocol version. IPv6, IPv4 or empty string are valid options. Empty string would mean IPv4
  171. # ipFamily: "IPv6"
  172. # # Ceph daemons to listen on both IPv4 and Ipv6 networks
  173. # dualStack: false
  174. # enable the crash collector for ceph daemon crash collection
  175. crashCollector:
  176. disable: true
  177. # Uncomment daysToRetain to prune ceph crash entries older than the
  178. # specified number of days.
  179. # daysToRetain: 30
  180. # enable log collector, daemons will log on files and rotate
  181. logCollector:
  182. enabled: true
  183. periodicity: daily # one of: hourly, daily, weekly, monthly
  184. maxLogSize: 500M # SUFFIX may be 'M' or 'G'. Must be at least 1M.
  185. # automate [data cleanup process](https://github.com/rook/rook/blob/master/Documentation/Storage-Configuration/ceph-teardown.md#delete-the-data-on-hosts) in cluster destruction.
  186. cleanupPolicy:
  187. # Since cluster cleanup is destructive to data, confirmation is required.
  188. # To destroy all Rook data on hosts during uninstall, confirmation must be set to "yes-really-destroy-data".
  189. # This value should only be set when the cluster is about to be deleted. After the confirmation is set,
  190. # Rook will immediately stop configuring the cluster and only wait for the delete command.
  191. # If the empty string is set, Rook will not destroy any data on hosts during uninstall.
  192. confirmation: ""
  193. # sanitizeDisks represents settings for sanitizing OSD disks on cluster deletion
  194. sanitizeDisks:
  195. # method indicates if the entire disk should be sanitized or simply ceph's metadata
  196. # in both case, re-install is possible
  197. # possible choices are 'complete' or 'quick' (default)
  198. method: quick
  199. # dataSource indicate where to get random bytes from to write on the disk
  200. # possible choices are 'zero' (default) or 'random'
  201. # using random sources will consume entropy from the system and will take much more time then the zero source
  202. dataSource: zero
  203. # iteration overwrite N times instead of the default (1)
  204. # takes an integer value
  205. iteration: 1
  206. # allowUninstallWithVolumes defines how the uninstall should be performed
  207. # If set to true, cephCluster deletion does not wait for the PVs to be deleted.
  208. allowUninstallWithVolumes: false
  209. # To control where various services will be scheduled by kubernetes, use the placement configuration sections below.
  210. # The example under 'all' would have all services scheduled on kubernetes nodes labeled with 'role=storage-node' and
  211. # tolerate taints with a key of 'storage-node'.
  212. placement:
  213. all:
  214. nodeAffinity:
  215. requiredDuringSchedulingIgnoredDuringExecution:
  216. nodeSelectorTerms:
  217. - matchExpressions:
  218. - key: role
  219. operator: In
  220. values:
  221. - storage-node
  222. podAffinity:
  223. podAntiAffinity:
  224. topologySpreadConstraints:
  225. tolerations:
  226. - key: storage-node
  227. operator: Exists
  228. # # The above placement information can also be specified for mon, osd, and mgr components
  229. mon:
  230. nodeAffinity:
  231. requiredDuringSchedulingIgnoredDuringExecution:
  232. nodeSelectorTerms:
  233. - matchExpressions:
  234. - key: ceph-node-type
  235. operator: In
  236. values:
  237. - mon
  238. podAffinity:
  239. podAntiAffinity:
  240. topologySpreadConstraints:
  241. tolerations:
  242. - key: mon
  243. operator: Exists
  244. # # Monitor deployments may contain an anti-affinity rule for avoiding monitor
  245. # # collocation on the same node. This is a required rule when host network is used
  246. # # or when AllowMultiplePerNode is false. Otherwise this anti-affinity rule is a
  247. # # preferred rule with weight: 50.
  248. osd:
  249. nodeAffinity:
  250. requiredDuringSchedulingIgnoredDuringExecution:
  251. nodeSelectorTerms:
  252. - matchExpressions:
  253. - key: ceph-node-type
  254. operator: In
  255. values:
  256. - osd
  257. podAffinity:
  258. podAntiAffinity:
  259. topologySpreadConstraints:
  260. tolerations:
  261. - key: osd
  262. operator: Exists
  263. mgr:
  264. nodeAffinity:
  265. requiredDuringSchedulingIgnoredDuringExecution:
  266. nodeSelectorTerms:
  267. - matchExpressions:
  268. - key: ceph-node-type
  269. operator: In
  270. values:
  271. - mon
  272. podAffinity:
  273. podAntiAffinity:
  274. topologySpreadConstraints:
  275. tolerations:
  276. - key: mon
  277. operator: Exists
  278. # cleanup:
  279. # annotations:
  280. # all:
  281. # mon:
  282. # osd:
  283. # cleanup:
  284. # prepareosd:
  285. # # If no mgr annotations are set, prometheus scrape annotations will be set by default.
  286. # mgr:
  287. # labels:
  288. # all:
  289. # mon:
  290. # osd:
  291. # cleanup:
  292. # mgr:
  293. # prepareosd:
  294. # # monitoring is a list of key-value pairs. It is injected into all the monitoring resources created by operator.
  295. # # These labels can be passed as LabelSelector to Prometheus
  296. # monitoring:
  297. resources:
  298. mgr:
  299. limits:
  300. cpu: "1000m"
  301. memory: "1Gi"
  302. requests:
  303. cpu: "500m"
  304. memory: "512Mi"
  305. mon:
  306. limits:
  307. cpu: "2000m"
  308. memory: "2Gi"
  309. requests:
  310. cpu: "1000m"
  311. memory: "1Gi"
  312. osd:
  313. limits:
  314. cpu: "2000m"
  315. memory: "2560Mi"
  316. requests:
  317. cpu: "1000m"
  318. memory: "2560Mi"
  319. prepareosd:
  320. # limits: It is not recommended to set limits on the OSD prepare job
  321. # since it's a one-time burst for memory that must be allowed to
  322. # complete without an OOM kill. Note however that if a k8s
  323. # limitRange guardrail is defined external to Rook, the lack of
  324. # a limit here may result in a sync failure, in which case a
  325. # limit should be added. 1200Mi may suffice for up to 15Ti
  326. # OSDs ; for larger devices 2Gi may be required.
  327. # cf. https://github.com/rook/rook/pull/11103
  328. requests:
  329. cpu: "500m"
  330. memory: "50Mi"
  331. mgr-sidecar:
  332. limits:
  333. cpu: "500m"
  334. memory: "100Mi"
  335. requests:
  336. cpu: "100m"
  337. memory: "40Mi"
  338. crashcollector:
  339. limits:
  340. cpu: "500m"
  341. memory: "60Mi"
  342. requests:
  343. cpu: "100m"
  344. memory: "60Mi"
  345. logcollector:
  346. limits:
  347. cpu: "500m"
  348. memory: "1Gi"
  349. requests:
  350. cpu: "100m"
  351. memory: "100Mi"
  352. cleanup:
  353. limits:
  354. cpu: "500m"
  355. memory: "1Gi"
  356. requests:
  357. cpu: "500m"
  358. memory: "100Mi"
  359. exporter:
  360. limits:
  361. cpu: "250m"
  362. memory: "128Mi"
  363. requests:
  364. cpu: "50m"
  365. memory: "50Mi"
  366. # The option to automatically remove OSDs that are out and are safe to destroy.
  367. removeOSDsIfOutAndSafeToRemove: false
  368. # priority classes to apply to ceph resources
  369. priorityClassNames:
  370. mon: system-node-critical
  371. osd: system-node-critical
  372. mgr: system-cluster-critical
  373. storage: # cluster level storage configuration and selection
  374. useAllNodes: true
  375. useAllDevices: true
  376. # deviceFilter:
  377. # config:
  378. # crushRoot: "custom-root" # specify a non-default root label for the CRUSH map
  379. # metadataDevice: "md0" # specify a non-rotational storage so ceph-volume will use it as block db device of bluestore.
  380. # databaseSizeMB: "1024" # uncomment if the disks are smaller than 100 GB
  381. # osdsPerDevice: "1" # this value can be overridden at the node or device level
  382. # encryptedDevice: "true" # the default value for this option is "false"
  383. # # Individual nodes and their config can be specified as well, but 'useAllNodes' above must be set to false. Then, only the named
  384. # # nodes below will be used as storage resources. Each node's 'name' field should match their 'kubernetes.io/hostname' label.
  385. # nodes:
  386. # - name: "172.17.4.201"
  387. # devices: # specific devices to use for storage can be specified for each node
  388. # - name: "sdb"
  389. # - name: "nvme01" # multiple osds can be created on high performance devices
  390. # config:
  391. # osdsPerDevice: "5"
  392. # - name: "/dev/disk/by-id/ata-ST4000DM004-XXXX" # devices can be specified using full udev paths
  393. # config: # configuration can be specified at the node level which overrides the cluster level config
  394. # - name: "172.17.4.301"
  395. # deviceFilter: "^sd."
  396. # The section for configuring management of daemon disruptions during upgrade or fencing.
  397. disruptionManagement:
  398. # If true, the operator will create and manage PodDisruptionBudgets for OSD, Mon, RGW, and MDS daemons. OSD PDBs are managed dynamically
  399. # via the strategy outlined in the [design](https://github.com/rook/rook/blob/master/design/ceph/ceph-managed-disruptionbudgets.md). The operator will
  400. # block eviction of OSDs by default and unblock them safely when drains are detected.
  401. managePodBudgets: true
  402. # A duration in minutes that determines how long an entire failureDomain like `region/zone/host` will be held in `noout` (in addition to the
  403. # default DOWN/OUT interval) when it is draining. This is only relevant when `managePodBudgets` is `true`. The default value is `30` minutes.
  404. osdMaintenanceTimeout: 30
  405. # A duration in minutes that the operator will wait for the placement groups to become healthy (active+clean) after a drain was completed and OSDs came back up.
  406. # Operator will continue with the next drain if the timeout exceeds. It only works if `managePodBudgets` is `true`.
  407. # No values or 0 means that the operator will wait until the placement groups are healthy before unblocking the next drain.
  408. pgHealthCheckTimeout: 0
  409. # Configure the healthcheck and liveness probes for ceph pods.
  410. # Valid values for daemons are 'mon', 'osd', 'status'
  411. healthCheck:
  412. daemonHealth:
  413. mon:
  414. disabled: false
  415. interval: 45s
  416. osd:
  417. disabled: false
  418. interval: 60s
  419. status:
  420. disabled: false
  421. interval: 60s
  422. # Change pod liveness probe, it works for all mon, mgr, and osd pods.
  423. livenessProbe:
  424. mon:
  425. disabled: false
  426. mgr:
  427. disabled: false
  428. osd:
  429. disabled: false
  430. ingress:
  431. # -- Enable an ingress for the ceph-dashboard
  432. dashboard:
  433. {}
  434. # annotations:
  435. # external-dns.alpha.kubernetes.io/hostname: dashboard.example.com
  436. # nginx.ingress.kubernetes.io/rewrite-target: /ceph-dashboard/$2
  437. # If the dashboard has ssl: true the following will make sure the NGINX Ingress controller can expose the dashboard correctly
  438. # nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
  439. # nginx.ingress.kubernetes.io/server-snippet: |
  440. # proxy_ssl_verify off;
  441. # host:
  442. # name: dashboard.example.com
  443. # path: "/ceph-dashboard(/|$)(.*)"
  444. # tls:
  445. # - hosts:
  446. # - dashboard.example.com
  447. # secretName: testsecret-tls
  448. ## Note: Only one of ingress class annotation or the `ingressClassName:` can be used at a time
  449. ## to set the ingress class
  450. # ingressClassName: nginx
  451. # -- A list of CephBlockPool configurations to deploy
  452. # @default -- See [below](#ceph-block-pools)
  453. cephBlockPools:
  454. - name: ceph-blockpool
  455. # see https://github.com/rook/rook/blob/master/Documentation/CRDs/Block-Storage/ceph-block-pool-crd.md#spec for available configuration
  456. spec:
  457. failureDomain: host
  458. replicated:
  459. size: 3
  460. # Enables collecting RBD per-image IO statistics by enabling dynamic OSD performance counters. Defaults to false.
  461. # For reference: https://docs.ceph.com/docs/master/mgr/prometheus/#rbd-io-statistics
  462. # enableRBDStats: true
  463. storageClass:
  464. enabled: true
  465. name: ceph-block
  466. isDefault: true
  467. reclaimPolicy: Delete
  468. allowVolumeExpansion: true
  469. volumeBindingMode: "Immediate"
  470. mountOptions: []
  471. # see https://kubernetes.io/docs/concepts/storage/storage-classes/#allowed-topologies
  472. allowedTopologies: []
  473. # - matchLabelExpressions:
  474. # - key: rook-ceph-role
  475. # values:
  476. # - storage-node
  477. # see https://github.com/rook/rook/blob/master/Documentation/Storage-Configuration/Block-Storage-RBD/block-storage.md#provision-storage for available configuration
  478. parameters:
  479. # (optional) mapOptions is a comma-separated list of map options.
  480. # For krbd options refer
  481. # https://docs.ceph.com/docs/master/man/8/rbd/#kernel-rbd-krbd-options
  482. # For nbd options refer
  483. # https://docs.ceph.com/docs/master/man/8/rbd-nbd/#options
  484. # mapOptions: lock_on_read,queue_depth=1024
  485. # (optional) unmapOptions is a comma-separated list of unmap options.
  486. # For krbd options refer
  487. # https://docs.ceph.com/docs/master/man/8/rbd/#kernel-rbd-krbd-options
  488. # For nbd options refer
  489. # https://docs.ceph.com/docs/master/man/8/rbd-nbd/#options
  490. # unmapOptions: force
  491. # RBD image format. Defaults to "2".
  492. imageFormat: "2"
  493. # RBD image features, equivalent to OR'd bitfield value: 63
  494. # Available for imageFormat: "2". Older releases of CSI RBD
  495. # support only the `layering` feature. The Linux kernel (KRBD) supports the
  496. # full feature complement as of 5.4
  497. imageFeatures: layering
  498. # These secrets contain Ceph admin credentials.
  499. csi.storage.k8s.io/provisioner-secret-name: rook-csi-rbd-provisioner
  500. csi.storage.k8s.io/provisioner-secret-namespace: "{{ .Release.Namespace }}"
  501. csi.storage.k8s.io/controller-expand-secret-name: rook-csi-rbd-provisioner
  502. csi.storage.k8s.io/controller-expand-secret-namespace: "{{ .Release.Namespace }}"
  503. csi.storage.k8s.io/node-stage-secret-name: rook-csi-rbd-node
  504. csi.storage.k8s.io/node-stage-secret-namespace: "{{ .Release.Namespace }}"
  505. # Specify the filesystem type of the volume. If not specified, csi-provisioner
  506. # will set default as `ext4`. Note that `xfs` is not recommended due to potential deadlock
  507. # in hyperconverged settings where the volume is mounted on the same node as the osds.
  508. csi.storage.k8s.io/fstype: ext4
  509. # -- A list of CephFileSystem configurations to deploy
  510. # @default -- See [below](#ceph-file-systems)
  511. cephFileSystems:
  512. - name: ceph-filesystem
  513. # see https://github.com/rook/rook/blob/master/Documentation/CRDs/Shared-Filesystem/ceph-filesystem-crd.md#filesystem-settings for available configuration
  514. spec:
  515. metadataPool:
  516. replicated:
  517. size: 3
  518. dataPools:
  519. - failureDomain: host
  520. replicated:
  521. size: 3
  522. # Optional and highly recommended, 'data0' by default, see https://github.com/rook/rook/blob/master/Documentation/CRDs/Shared-Filesystem/ceph-filesystem-crd.md#pools
  523. name: data0
  524. metadataServer:
  525. activeCount: 1
  526. activeStandby: true
  527. resources:
  528. limits:
  529. cpu: "2000m"
  530. memory: "4Gi"
  531. requests:
  532. cpu: "1000m"
  533. memory: "4Gi"
  534. priorityClassName: system-cluster-critical
  535. storageClass:
  536. enabled: true
  537. isDefault: false
  538. name: ceph-filesystem
  539. # (Optional) specify a data pool to use, must be the name of one of the data pools above, 'data0' by default
  540. pool: data0
  541. reclaimPolicy: Delete
  542. allowVolumeExpansion: true
  543. volumeBindingMode: "Immediate"
  544. mountOptions: []
  545. # see https://github.com/rook/rook/blob/master/Documentation/Storage-Configuration/Shared-Filesystem-CephFS/filesystem-storage.md#provision-storage for available configuration
  546. parameters:
  547. # The secrets contain Ceph admin credentials.
  548. csi.storage.k8s.io/provisioner-secret-name: rook-csi-cephfs-provisioner
  549. csi.storage.k8s.io/provisioner-secret-namespace: "{{ .Release.Namespace }}"
  550. csi.storage.k8s.io/controller-expand-secret-name: rook-csi-cephfs-provisioner
  551. csi.storage.k8s.io/controller-expand-secret-namespace: "{{ .Release.Namespace }}"
  552. csi.storage.k8s.io/node-stage-secret-name: rook-csi-cephfs-node
  553. csi.storage.k8s.io/node-stage-secret-namespace: "{{ .Release.Namespace }}"
  554. # Specify the filesystem type of the volume. If not specified, csi-provisioner
  555. # will set default as `ext4`. Note that `xfs` is not recommended due to potential deadlock
  556. # in hyperconverged settings where the volume is mounted on the same node as the osds.
  557. csi.storage.k8s.io/fstype: ext4
  558. # -- Settings for the filesystem snapshot class
  559. # @default -- See [CephFS Snapshots](../Storage-Configuration/Ceph-CSI/ceph-csi-snapshot.md#cephfs-snapshots)
  560. cephFileSystemVolumeSnapshotClass:
  561. enabled: false
  562. name: ceph-filesystem
  563. isDefault: true
  564. deletionPolicy: Delete
  565. annotations: {}
  566. labels: {}
  567. # see https://rook.io/docs/rook/v1.10/Storage-Configuration/Ceph-CSI/ceph-csi-snapshot/#cephfs-snapshots for available configuration
  568. parameters: {}
  569. # -- Settings for the block pool snapshot class
  570. # @default -- See [RBD Snapshots](../Storage-Configuration/Ceph-CSI/ceph-csi-snapshot.md#rbd-snapshots)
  571. cephBlockPoolsVolumeSnapshotClass:
  572. enabled: false
  573. name: ceph-block
  574. isDefault: false
  575. deletionPolicy: Delete
  576. annotations: {}
  577. labels: {}
  578. # see https://rook.io/docs/rook/v1.10/Storage-Configuration/Ceph-CSI/ceph-csi-snapshot/#rbd-snapshots for available configuration
  579. parameters: {}
  580. # -- A list of CephObjectStore configurations to deploy
  581. # @default -- See [below](#ceph-object-stores)
  582. cephObjectStores:
  583. - name: ceph-objectstore
  584. # see https://github.com/rook/rook/blob/master/Documentation/CRDs/Object-Storage/ceph-object-store-crd.md#object-store-settings for available configuration
  585. spec:
  586. metadataPool:
  587. failureDomain: host
  588. replicated:
  589. size: 3
  590. dataPool:
  591. failureDomain: host
  592. erasureCoded:
  593. dataChunks: 2
  594. codingChunks: 1
  595. preservePoolsOnDelete: true
  596. gateway:
  597. port: 80
  598. resources:
  599. limits:
  600. cpu: "2000m"
  601. memory: "2Gi"
  602. requests:
  603. cpu: "1000m"
  604. memory: "1Gi"
  605. # securePort: 443
  606. # sslCertificateRef:
  607. instances: 1
  608. priorityClassName: system-cluster-critical
  609. storageClass:
  610. enabled: true
  611. name: ceph-bucket
  612. reclaimPolicy: Delete
  613. volumeBindingMode: "Immediate"
  614. # see https://github.com/rook/rook/blob/master/Documentation/Storage-Configuration/Object-Storage-RGW/ceph-object-bucket-claim.md#storageclass for available configuration
  615. parameters:
  616. # note: objectStoreNamespace and objectStoreName are configured by the chart
  617. region: us-east-1
  618. ingress:
  619. # Enable an ingress for the ceph-objectstore
  620. enabled: false
  621. # annotations: {}
  622. # host:
  623. # name: objectstore.example.com
  624. # path: /
  625. # tls:
  626. # - hosts:
  627. # - objectstore.example.com
  628. # secretName: ceph-objectstore-tls
  629. # ingressClassName: nginx
  630. # cephECBlockPools are disabled by default, please remove the comments and set desired values to enable it
  631. #cephECBlockPools:
  632. # # For erasure coded a replicated metadata pool is required.
  633. # # https://rook.io/docs/rook/latest/CRDs/Shared-Filesystem/ceph-filesystem-crd/#erasure-coded
  634. # - name: ec-metadata-pool
  635. # # see https://github.com/rook/rook/blob/master/Documentation/CRDs/Block-Storage/ceph-block-pool-crd.md#spec for available configuration
  636. # spec:
  637. # replicated:
  638. # size: 2
  639. # - name: ec-data-pool
  640. # spec:
  641. # failureDomain: osd
  642. # erasureCoded:
  643. # dataChunks: 2
  644. # codingChunks: 1
  645. # deviceClass: hdd
  646. # cephECStorageClass also is disabled by default, please remove the comments and set desired values to enable it
  647. # if cephECBlockPools are uncommented you must remove the comments of cephEcStorageClass as well
  648. #cephECStorageClass:
  649. # name: rook-ceph-block
  650. # # Change "rook-ceph" provisioner prefix to match the operator namespace if needed
  651. # provisioner: rook-ceph.rbd.csi.ceph.com # driver:namespace:operator
  652. # parameters:
  653. # # clusterID is the namespace where the rook cluster is running
  654. # # If you change this namespace, also change the namespace below where the secret namespaces are defined
  655. # clusterID: rook-ceph # namespace:cluster
  656. #
  657. # # If you want to use erasure coded pool with RBD, you need to create
  658. # # two pools. one erasure coded and one replicated.
  659. # # You need to specify the replicated pool here in the `pool` parameter, it is
  660. # # used for the metadata of the images.
  661. # # The erasure coded pool must be set as the `dataPool` parameter below.
  662. # dataPool: ec-data-pool
  663. # pool: ec-metadata-pool
  664. #
  665. # # (optional) mapOptions is a comma-separated list of map options.
  666. # # For krbd options refer
  667. # # https://docs.ceph.com/docs/master/man/8/rbd/#kernel-rbd-krbd-options
  668. # # For nbd options refer
  669. # # https://docs.ceph.com/docs/master/man/8/rbd-nbd/#options
  670. # # mapOptions: lock_on_read,queue_depth=1024
  671. #
  672. # # (optional) unmapOptions is a comma-separated list of unmap options.
  673. # # For krbd options refer
  674. # # https://docs.ceph.com/docs/master/man/8/rbd/#kernel-rbd-krbd-options
  675. # # For nbd options refer
  676. # # https://docs.ceph.com/docs/master/man/8/rbd-nbd/#options
  677. # # unmapOptions: force
  678. #
  679. # # RBD image format. Defaults to "2".
  680. # imageFormat: "2"
  681. #
  682. # # RBD image features, equivalent to OR'd bitfield value: 63
  683. # # Available for imageFormat: "2". Older releases of CSI RBD
  684. # # support only the `layering` feature. The Linux kernel (KRBD) supports the
  685. # # full feature complement as of 5.4
  686. # # imageFeatures: layering,fast-diff,object-map,deep-flatten,exclusive-lock
  687. # imageFeatures: layering
  688. # allowVolumeExpansion: true
  689. # reclaimPolicy: Delete