ceph-values.yaml 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734
  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:v18.2.0
  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:v18.2.0
  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. - name: rook
  127. enabled: true
  128. # enable the ceph dashboard for viewing cluster status
  129. dashboard:
  130. enabled: true
  131. # serve the dashboard under a subpath (useful when you are accessing the dashboard via a reverse proxy)
  132. urlPrefix: /ceph-dashboard
  133. # serve the dashboard at the given port.
  134. port: 8080
  135. # Serve the dashboard using SSL (if using ingress to expose the dashboard and `ssl: true` you need to set
  136. # the corresponding "backend protocol" annotation(s) for your ingress controller of choice)
  137. ssl: false
  138. # ssl: true
  139. # Network configuration, see: https://github.com/rook/rook/blob/master/Documentation/CRDs/ceph-cluster-crd.md#network-configuration-settings
  140. network:
  141. hostNetwork: true
  142. connections:
  143. # Whether to encrypt the data in transit across the wire to prevent eavesdropping the data on the network.
  144. # The default is false. When encryption is enabled, all communication between clients and Ceph daemons, or between Ceph daemons will be encrypted.
  145. # When encryption is not enabled, clients still establish a strong initial authentication and data integrity is still validated with a crc check.
  146. # IMPORTANT: Encryption requires the 5.11 kernel for the latest nbd and cephfs drivers. Alternatively for testing only,
  147. # you can set the "mounter: rbd-nbd" in the rbd storage class, or "mounter: fuse" in the cephfs storage class.
  148. # The nbd and fuse drivers are *not* recommended in production since restarting the csi driver pod will disconnect the volumes.
  149. encryption:
  150. enabled: false
  151. # Whether to compress the data in transit across the wire. The default is false.
  152. # Requires Ceph Quincy (v17) or newer. Also see the kernel requirements above for encryption.
  153. compression:
  154. enabled: false
  155. # Whether to require communication over msgr2. If true, the msgr v1 port (6789) will be disabled
  156. # and clients will be required to connect to the Ceph cluster with the v2 port (3300).
  157. # Requires a kernel that supports msgr v2 (kernel 5.11 or CentOS 8.4 or newer).
  158. requireMsgr2: false
  159. # # enable host networking
  160. provider: host
  161. hostNetwork: true
  162. # # EXPERIMENTAL: enable the Multus network provider
  163. # provider: multus
  164. # selectors:
  165. # # The selector keys are required to be `public` and `cluster`.
  166. # # Based on the configuration, the operator will do the following:
  167. # # 1. if only the `public` selector key is specified both public_network and cluster_network Ceph settings will listen on that interface
  168. # # 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'
  169. # #
  170. # # In order to work, each selector value must match a NetworkAttachmentDefinition object in Multus
  171. # #
  172. # # public: public-conf --> NetworkAttachmentDefinition object name in Multus
  173. # # cluster: cluster-conf --> NetworkAttachmentDefinition object name in Multus
  174. # # Provide internet protocol version. IPv6, IPv4 or empty string are valid options. Empty string would mean IPv4
  175. # ipFamily: "IPv6"
  176. # # Ceph daemons to listen on both IPv4 and Ipv6 networks
  177. # dualStack: false
  178. # enable the crash collector for ceph daemon crash collection
  179. crashCollector:
  180. disable: true
  181. # Uncomment daysToRetain to prune ceph crash entries older than the
  182. # specified number of days.
  183. # daysToRetain: 30
  184. # enable log collector, daemons will log on files and rotate
  185. logCollector:
  186. enabled: true
  187. periodicity: daily # one of: hourly, daily, weekly, monthly
  188. maxLogSize: 500M # SUFFIX may be 'M' or 'G'. Must be at least 1M.
  189. # 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.
  190. cleanupPolicy:
  191. # Since cluster cleanup is destructive to data, confirmation is required.
  192. # To destroy all Rook data on hosts during uninstall, confirmation must be set to "yes-really-destroy-data".
  193. # This value should only be set when the cluster is about to be deleted. After the confirmation is set,
  194. # Rook will immediately stop configuring the cluster and only wait for the delete command.
  195. # If the empty string is set, Rook will not destroy any data on hosts during uninstall.
  196. confirmation: ""
  197. # sanitizeDisks represents settings for sanitizing OSD disks on cluster deletion
  198. sanitizeDisks:
  199. # method indicates if the entire disk should be sanitized or simply ceph's metadata
  200. # in both case, re-install is possible
  201. # possible choices are 'complete' or 'quick' (default)
  202. method: quick
  203. # dataSource indicate where to get random bytes from to write on the disk
  204. # possible choices are 'zero' (default) or 'random'
  205. # using random sources will consume entropy from the system and will take much more time then the zero source
  206. dataSource: zero
  207. # iteration overwrite N times instead of the default (1)
  208. # takes an integer value
  209. iteration: 1
  210. # allowUninstallWithVolumes defines how the uninstall should be performed
  211. # If set to true, cephCluster deletion does not wait for the PVs to be deleted.
  212. allowUninstallWithVolumes: false
  213. # To control where various services will be scheduled by kubernetes, use the placement configuration sections below.
  214. # The example under 'all' would have all services scheduled on kubernetes nodes labeled with 'role=storage-node' and
  215. # tolerate taints with a key of 'storage-node'.
  216. placement:
  217. all:
  218. nodeAffinity:
  219. requiredDuringSchedulingIgnoredDuringExecution:
  220. nodeSelectorTerms:
  221. - matchExpressions:
  222. - key: all
  223. operator: In
  224. values:
  225. - all
  226. podAffinity:
  227. podAntiAffinity:
  228. topologySpreadConstraints:
  229. tolerations:
  230. - key: all
  231. operator: Exists
  232. # # The above placement information can also be specified for mon, osd, and mgr components
  233. mon:
  234. nodeAffinity:
  235. requiredDuringSchedulingIgnoredDuringExecution:
  236. nodeSelectorTerms:
  237. - matchExpressions:
  238. - key: mon
  239. operator: In
  240. values:
  241. - mon
  242. podAffinity:
  243. podAntiAffinity:
  244. topologySpreadConstraints:
  245. tolerations:
  246. - key: mon
  247. operator: Exists
  248. # # Monitor deployments may contain an anti-affinity rule for avoiding monitor
  249. # # collocation on the same node. This is a required rule when host network is used
  250. # # or when AllowMultiplePerNode is false. Otherwise this anti-affinity rule is a
  251. # # preferred rule with weight: 50.
  252. osd:
  253. nodeAffinity:
  254. requiredDuringSchedulingIgnoredDuringExecution:
  255. nodeSelectorTerms:
  256. - matchExpressions:
  257. - key: osd
  258. operator: In
  259. values:
  260. - osd
  261. podAffinity:
  262. podAntiAffinity:
  263. topologySpreadConstraints:
  264. tolerations:
  265. - key: osd
  266. operator: Exists
  267. mgr:
  268. nodeAffinity:
  269. requiredDuringSchedulingIgnoredDuringExecution:
  270. nodeSelectorTerms:
  271. - matchExpressions:
  272. - key: mgr
  273. operator: In
  274. values:
  275. - mgr
  276. podAffinity:
  277. podAntiAffinity:
  278. topologySpreadConstraints:
  279. tolerations:
  280. - key: mgr
  281. operator: Exists
  282. # cleanup:
  283. # annotations:
  284. # all:
  285. # mon:
  286. # osd:
  287. # cleanup:
  288. # prepareosd:
  289. # # If no mgr annotations are set, prometheus scrape annotations will be set by default.
  290. # mgr:
  291. # labels:
  292. # all:
  293. # mon:
  294. # osd:
  295. # cleanup:
  296. # mgr:
  297. # prepareosd:
  298. # # monitoring is a list of key-value pairs. It is injected into all the monitoring resources created by operator.
  299. # # These labels can be passed as LabelSelector to Prometheus
  300. # monitoring:
  301. resources:
  302. mgr:
  303. limits:
  304. cpu: "1000m"
  305. memory: "1Gi"
  306. requests:
  307. cpu: "500m"
  308. memory: "512Mi"
  309. mon:
  310. limits:
  311. cpu: "2000m"
  312. memory: "2Gi"
  313. requests:
  314. cpu: "1000m"
  315. memory: "1Gi"
  316. osd:
  317. limits:
  318. cpu: "2000m"
  319. memory: "5120Mi"
  320. requests:
  321. cpu: "1000m"
  322. memory: "4096Mi"
  323. prepareosd:
  324. # limits: It is not recommended to set limits on the OSD prepare job
  325. # since it's a one-time burst for memory that must be allowed to
  326. # complete without an OOM kill. Note however that if a k8s
  327. # limitRange guardrail is defined external to Rook, the lack of
  328. # a limit here may result in a sync failure, in which case a
  329. # limit should be added. 1200Mi may suffice for up to 15Ti
  330. # OSDs ; for larger devices 2Gi may be required.
  331. # cf. https://github.com/rook/rook/pull/11103
  332. requests:
  333. cpu: "500m"
  334. memory: "50Mi"
  335. mgr-sidecar:
  336. limits:
  337. cpu: "500m"
  338. memory: "100Mi"
  339. requests:
  340. cpu: "100m"
  341. memory: "40Mi"
  342. crashcollector:
  343. limits:
  344. cpu: "500m"
  345. memory: "60Mi"
  346. requests:
  347. cpu: "100m"
  348. memory: "60Mi"
  349. logcollector:
  350. limits:
  351. cpu: "500m"
  352. memory: "1Gi"
  353. requests:
  354. cpu: "100m"
  355. memory: "100Mi"
  356. cleanup:
  357. limits:
  358. cpu: "500m"
  359. memory: "1Gi"
  360. requests:
  361. cpu: "500m"
  362. memory: "100Mi"
  363. exporter:
  364. limits:
  365. cpu: "250m"
  366. memory: "128Mi"
  367. requests:
  368. cpu: "50m"
  369. memory: "50Mi"
  370. # The option to automatically remove OSDs that are out and are safe to destroy.
  371. removeOSDsIfOutAndSafeToRemove: false
  372. # priority classes to apply to ceph resources
  373. priorityClassNames:
  374. mon: system-node-critical
  375. osd: system-node-critical
  376. mgr: system-cluster-critical
  377. storage: # cluster level storage configuration and selection
  378. useAllNodes: true
  379. useAllDevices: true
  380. # deviceFilter:
  381. # config:
  382. # crushRoot: "custom-root" # specify a non-default root label for the CRUSH map
  383. # metadataDevice: "md0" # specify a non-rotational storage so ceph-volume will use it as block db device of bluestore.
  384. # databaseSizeMB: "1024" # uncomment if the disks are smaller than 100 GB
  385. # osdsPerDevice: "1" # this value can be overridden at the node or device level
  386. # encryptedDevice: "true" # the default value for this option is "false"
  387. # # Individual nodes and their config can be specified as well, but 'useAllNodes' above must be set to false. Then, only the named
  388. # # nodes below will be used as storage resources. Each node's 'name' field should match their 'kubernetes.io/hostname' label.
  389. # nodes:
  390. # - name: "172.17.4.201"
  391. # devices: # specific devices to use for storage can be specified for each node
  392. # - name: "sdb"
  393. # - name: "nvme01" # multiple osds can be created on high performance devices
  394. # config:
  395. # osdsPerDevice: "5"
  396. # - name: "/dev/disk/by-id/ata-ST4000DM004-XXXX" # devices can be specified using full udev paths
  397. # config: # configuration can be specified at the node level which overrides the cluster level config
  398. # - name: "172.17.4.301"
  399. # deviceFilter: "^sd."
  400. # The section for configuring management of daemon disruptions during upgrade or fencing.
  401. disruptionManagement:
  402. # If true, the operator will create and manage PodDisruptionBudgets for OSD, Mon, RGW, and MDS daemons. OSD PDBs are managed dynamically
  403. # via the strategy outlined in the [design](https://github.com/rook/rook/blob/master/design/ceph/ceph-managed-disruptionbudgets.md). The operator will
  404. # block eviction of OSDs by default and unblock them safely when drains are detected.
  405. managePodBudgets: true
  406. # A duration in minutes that determines how long an entire failureDomain like `region/zone/host` will be held in `noout` (in addition to the
  407. # default DOWN/OUT interval) when it is draining. This is only relevant when `managePodBudgets` is `true`. The default value is `30` minutes.
  408. osdMaintenanceTimeout: 30
  409. # 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.
  410. # Operator will continue with the next drain if the timeout exceeds. It only works if `managePodBudgets` is `true`.
  411. # No values or 0 means that the operator will wait until the placement groups are healthy before unblocking the next drain.
  412. pgHealthCheckTimeout: 0
  413. # Configure the healthcheck and liveness probes for ceph pods.
  414. # Valid values for daemons are 'mon', 'osd', 'status'
  415. healthCheck:
  416. daemonHealth:
  417. mon:
  418. disabled: false
  419. interval: 45s
  420. osd:
  421. disabled: false
  422. interval: 60s
  423. status:
  424. disabled: false
  425. interval: 60s
  426. # Change pod liveness probe, it works for all mon, mgr, and osd pods.
  427. livenessProbe:
  428. mon:
  429. disabled: false
  430. mgr:
  431. disabled: false
  432. osd:
  433. disabled: false
  434. ingress:
  435. # -- Enable an ingress for the ceph-dashboard
  436. dashboard:
  437. {}
  438. # annotations:
  439. # external-dns.alpha.kubernetes.io/hostname: dashboard.example.com
  440. # nginx.ingress.kubernetes.io/rewrite-target: /ceph-dashboard/$2
  441. # If the dashboard has ssl: true the following will make sure the NGINX Ingress controller can expose the dashboard correctly
  442. # nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
  443. # nginx.ingress.kubernetes.io/server-snippet: |
  444. # proxy_ssl_verify off;
  445. # host:
  446. # name: dashboard.example.com
  447. # path: "/ceph-dashboard(/|$)(.*)"
  448. # tls:
  449. # - hosts:
  450. # - dashboard.example.com
  451. # secretName: testsecret-tls
  452. ## Note: Only one of ingress class annotation or the `ingressClassName:` can be used at a time
  453. ## to set the ingress class
  454. # ingressClassName: nginx
  455. # -- A list of CephBlockPool configurations to deploy
  456. # @default -- See [below](#ceph-block-pools)
  457. cephBlockPools:
  458. - name: ceph-blockpool
  459. # see https://github.com/rook/rook/blob/master/Documentation/CRDs/Block-Storage/ceph-block-pool-crd.md#spec for available configuration
  460. spec:
  461. failureDomain: host
  462. replicated:
  463. size: 3
  464. # Enables collecting RBD per-image IO statistics by enabling dynamic OSD performance counters. Defaults to false.
  465. # For reference: https://docs.ceph.com/docs/master/mgr/prometheus/#rbd-io-statistics
  466. # enableRBDStats: true
  467. storageClass:
  468. enabled: true
  469. name: ceph-block
  470. isDefault: true
  471. reclaimPolicy: Delete
  472. allowVolumeExpansion: true
  473. volumeBindingMode: "Immediate"
  474. mountOptions: []
  475. # see https://kubernetes.io/docs/concepts/storage/storage-classes/#allowed-topologies
  476. allowedTopologies: []
  477. # - matchLabelExpressions:
  478. # - key: rook-ceph-role
  479. # values:
  480. # - storage-node
  481. # see https://github.com/rook/rook/blob/master/Documentation/Storage-Configuration/Block-Storage-RBD/block-storage.md#provision-storage for available configuration
  482. parameters:
  483. # (optional) mapOptions is a comma-separated list of map options.
  484. # For krbd options refer
  485. # https://docs.ceph.com/docs/master/man/8/rbd/#kernel-rbd-krbd-options
  486. # For nbd options refer
  487. # https://docs.ceph.com/docs/master/man/8/rbd-nbd/#options
  488. # mapOptions: lock_on_read,queue_depth=1024
  489. # (optional) unmapOptions is a comma-separated list of unmap options.
  490. # For krbd options refer
  491. # https://docs.ceph.com/docs/master/man/8/rbd/#kernel-rbd-krbd-options
  492. # For nbd options refer
  493. # https://docs.ceph.com/docs/master/man/8/rbd-nbd/#options
  494. # unmapOptions: force
  495. # RBD image format. Defaults to "2".
  496. imageFormat: "2"
  497. # RBD image features, equivalent to OR'd bitfield value: 63
  498. # Available for imageFormat: "2". Older releases of CSI RBD
  499. # support only the `layering` feature. The Linux kernel (KRBD) supports the
  500. # full feature complement as of 5.4
  501. imageFeatures: layering
  502. # These secrets contain Ceph admin credentials.
  503. csi.storage.k8s.io/provisioner-secret-name: rook-csi-rbd-provisioner
  504. csi.storage.k8s.io/provisioner-secret-namespace: "{{ .Release.Namespace }}"
  505. csi.storage.k8s.io/controller-expand-secret-name: rook-csi-rbd-provisioner
  506. csi.storage.k8s.io/controller-expand-secret-namespace: "{{ .Release.Namespace }}"
  507. csi.storage.k8s.io/node-stage-secret-name: rook-csi-rbd-node
  508. csi.storage.k8s.io/node-stage-secret-namespace: "{{ .Release.Namespace }}"
  509. # Specify the filesystem type of the volume. If not specified, csi-provisioner
  510. # will set default as `ext4`. Note that `xfs` is not recommended due to potential deadlock
  511. # in hyperconverged settings where the volume is mounted on the same node as the osds.
  512. csi.storage.k8s.io/fstype: ext4
  513. # -- A list of CephFileSystem configurations to deploy
  514. # @default -- See [below](#ceph-file-systems)
  515. cephFileSystems:
  516. - name: ceph-filesystem
  517. # see https://github.com/rook/rook/blob/master/Documentation/CRDs/Shared-Filesystem/ceph-filesystem-crd.md#filesystem-settings for available configuration
  518. spec:
  519. metadataPool:
  520. replicated:
  521. size: 3
  522. dataPools:
  523. - failureDomain: host
  524. replicated:
  525. size: 3
  526. # Optional and highly recommended, 'data0' by default, see https://github.com/rook/rook/blob/master/Documentation/CRDs/Shared-Filesystem/ceph-filesystem-crd.md#pools
  527. name: data0
  528. metadataServer:
  529. activeCount: 1
  530. activeStandby: true
  531. resources:
  532. limits:
  533. cpu: "2000m"
  534. memory: "4Gi"
  535. requests:
  536. cpu: "1000m"
  537. memory: "4Gi"
  538. priorityClassName: system-cluster-critical
  539. storageClass:
  540. enabled: true
  541. isDefault: false
  542. name: ceph-filesystem
  543. # (Optional) specify a data pool to use, must be the name of one of the data pools above, 'data0' by default
  544. pool: data0
  545. reclaimPolicy: Delete
  546. allowVolumeExpansion: true
  547. volumeBindingMode: "Immediate"
  548. mountOptions: []
  549. # see https://github.com/rook/rook/blob/master/Documentation/Storage-Configuration/Shared-Filesystem-CephFS/filesystem-storage.md#provision-storage for available configuration
  550. parameters:
  551. # The secrets contain Ceph admin credentials.
  552. csi.storage.k8s.io/provisioner-secret-name: rook-csi-cephfs-provisioner
  553. csi.storage.k8s.io/provisioner-secret-namespace: "{{ .Release.Namespace }}"
  554. csi.storage.k8s.io/controller-expand-secret-name: rook-csi-cephfs-provisioner
  555. csi.storage.k8s.io/controller-expand-secret-namespace: "{{ .Release.Namespace }}"
  556. csi.storage.k8s.io/node-stage-secret-name: rook-csi-cephfs-node
  557. csi.storage.k8s.io/node-stage-secret-namespace: "{{ .Release.Namespace }}"
  558. # Specify the filesystem type of the volume. If not specified, csi-provisioner
  559. # will set default as `ext4`. Note that `xfs` is not recommended due to potential deadlock
  560. # in hyperconverged settings where the volume is mounted on the same node as the osds.
  561. csi.storage.k8s.io/fstype: ext4
  562. # -- Settings for the filesystem snapshot class
  563. # @default -- See [CephFS Snapshots](../Storage-Configuration/Ceph-CSI/ceph-csi-snapshot.md#cephfs-snapshots)
  564. cephFileSystemVolumeSnapshotClass:
  565. enabled: false
  566. name: ceph-filesystem
  567. isDefault: true
  568. deletionPolicy: Delete
  569. annotations: {}
  570. labels: {}
  571. # see https://rook.io/docs/rook/v1.10/Storage-Configuration/Ceph-CSI/ceph-csi-snapshot/#cephfs-snapshots for available configuration
  572. parameters: {}
  573. # -- Settings for the block pool snapshot class
  574. # @default -- See [RBD Snapshots](../Storage-Configuration/Ceph-CSI/ceph-csi-snapshot.md#rbd-snapshots)
  575. cephBlockPoolsVolumeSnapshotClass:
  576. enabled: false
  577. name: ceph-block
  578. isDefault: false
  579. deletionPolicy: Delete
  580. annotations: {}
  581. labels: {}
  582. # see https://rook.io/docs/rook/v1.10/Storage-Configuration/Ceph-CSI/ceph-csi-snapshot/#rbd-snapshots for available configuration
  583. parameters: {}
  584. # -- A list of CephObjectStore configurations to deploy
  585. # @default -- See [below](#ceph-object-stores)
  586. cephObjectStores:
  587. - name: ceph-objectstore
  588. # see https://github.com/rook/rook/blob/master/Documentation/CRDs/Object-Storage/ceph-object-store-crd.md#object-store-settings for available configuration
  589. spec:
  590. metadataPool:
  591. failureDomain: host
  592. replicated:
  593. size: 3
  594. dataPool:
  595. failureDomain: host
  596. erasureCoded:
  597. dataChunks: 2
  598. codingChunks: 1
  599. preservePoolsOnDelete: true
  600. gateway:
  601. port: 80
  602. resources:
  603. limits:
  604. cpu: "2000m"
  605. memory: "2Gi"
  606. requests:
  607. cpu: "1000m"
  608. memory: "1Gi"
  609. # securePort: 443
  610. # sslCertificateRef:
  611. instances: 1
  612. priorityClassName: system-cluster-critical
  613. storageClass:
  614. enabled: true
  615. name: ceph-bucket
  616. reclaimPolicy: Delete
  617. volumeBindingMode: "Immediate"
  618. # see https://github.com/rook/rook/blob/master/Documentation/Storage-Configuration/Object-Storage-RGW/ceph-object-bucket-claim.md#storageclass for available configuration
  619. parameters:
  620. # note: objectStoreNamespace and objectStoreName are configured by the chart
  621. region: us-east-1
  622. ingress:
  623. # Enable an ingress for the ceph-objectstore
  624. enabled: false
  625. # annotations: {}
  626. # host:
  627. # name: objectstore.example.com
  628. # path: /
  629. # tls:
  630. # - hosts:
  631. # - objectstore.example.com
  632. # secretName: ceph-objectstore-tls
  633. # ingressClassName: nginx
  634. # cephECBlockPools are disabled by default, please remove the comments and set desired values to enable it
  635. #cephECBlockPools:
  636. # # For erasure coded a replicated metadata pool is required.
  637. # # https://rook.io/docs/rook/latest/CRDs/Shared-Filesystem/ceph-filesystem-crd/#erasure-coded
  638. # - name: ec-metadata-pool
  639. # # see https://github.com/rook/rook/blob/master/Documentation/CRDs/Block-Storage/ceph-block-pool-crd.md#spec for available configuration
  640. # spec:
  641. # replicated:
  642. # size: 2
  643. # - name: ec-data-pool
  644. # spec:
  645. # failureDomain: osd
  646. # erasureCoded:
  647. # dataChunks: 2
  648. # codingChunks: 1
  649. # deviceClass: hdd
  650. # cephECStorageClass also is disabled by default, please remove the comments and set desired values to enable it
  651. # if cephECBlockPools are uncommented you must remove the comments of cephEcStorageClass as well
  652. #cephECStorageClass:
  653. # name: rook-ceph-block
  654. # # Change "rook-ceph" provisioner prefix to match the operator namespace if needed
  655. # provisioner: rook-ceph.rbd.csi.ceph.com # driver:namespace:operator
  656. # parameters:
  657. # # clusterID is the namespace where the rook cluster is running
  658. # # If you change this namespace, also change the namespace below where the secret namespaces are defined
  659. # clusterID: rook-ceph # namespace:cluster
  660. #
  661. # # If you want to use erasure coded pool with RBD, you need to create
  662. # # two pools. one erasure coded and one replicated.
  663. # # You need to specify the replicated pool here in the `pool` parameter, it is
  664. # # used for the metadata of the images.
  665. # # The erasure coded pool must be set as the `dataPool` parameter below.
  666. # dataPool: ec-data-pool
  667. # pool: ec-metadata-pool
  668. #
  669. # # (optional) mapOptions is a comma-separated list of map options.
  670. # # For krbd options refer
  671. # # https://docs.ceph.com/docs/master/man/8/rbd/#kernel-rbd-krbd-options
  672. # # For nbd options refer
  673. # # https://docs.ceph.com/docs/master/man/8/rbd-nbd/#options
  674. # # mapOptions: lock_on_read,queue_depth=1024
  675. #
  676. # # (optional) unmapOptions is a comma-separated list of unmap options.
  677. # # For krbd options refer
  678. # # https://docs.ceph.com/docs/master/man/8/rbd/#kernel-rbd-krbd-options
  679. # # For nbd options refer
  680. # # https://docs.ceph.com/docs/master/man/8/rbd-nbd/#options
  681. # # unmapOptions: force
  682. #
  683. # # RBD image format. Defaults to "2".
  684. # imageFormat: "2"
  685. #
  686. # # RBD image features, equivalent to OR'd bitfield value: 63
  687. # # Available for imageFormat: "2". Older releases of CSI RBD
  688. # # support only the `layering` feature. The Linux kernel (KRBD) supports the
  689. # # full feature complement as of 5.4
  690. # # imageFeatures: layering,fast-diff,object-map,deep-flatten,exclusive-lock
  691. # imageFeatures: layering
  692. # allowVolumeExpansion: true
  693. # reclaimPolicy: Delete