rook-ceph-cluster-values.yaml 32 KB

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