rook-ceph-cluster-values.yaml 31 KB

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