rook-ceph-cluster-values.yaml 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  1. # From https://raw.githubusercontent.com/rook/rook/v1.18.9/deploy/charts/rook-ceph-cluster/values.yaml
  2. # Installs a debugging toolbox deployment
  3. toolbox:
  4. # -- Enable Ceph debugging pod deployment. See [toolbox](../Troubleshooting/ceph-toolbox.md)
  5. enabled: true
  6. # -- Toolbox image, defaults to the image used by the Ceph cluster
  7. monitoring:
  8. # -- Enable Prometheus integration, will also create necessary RBAC rules to allow Operator to create ServiceMonitors.
  9. # Monitoring requires Prometheus to be pre-installed
  10. enabled: true
  11. # -- Whether to create the Prometheus rules for Ceph alerts
  12. createPrometheusRules: true
  13. # -- The namespace in which to create the prometheus rules, if different from the rook cluster namespace.
  14. # If you have multiple rook-ceph clusters in the same k8s cluster, choose the same namespace (ideally, namespace with prometheus
  15. # deployed) to set rulesNamespaceOverride for all the clusters. Otherwise, you will get duplicate alerts with multiple alert definitions.
  16. # All values below are taken from the CephCluster CRD
  17. # -- Cluster configuration.
  18. # @default -- See [below](#ceph-cluster-spec)
  19. cephClusterSpec:
  20. dashboard:
  21. # serve the dashboard under a subpath (useful when you are accessing the dashboard via a reverse proxy)
  22. # urlPrefix: /ceph-dashboard
  23. # serve the dashboard at the given port.
  24. port: 8080
  25. # Serve the dashboard using SSL (if using ingress to expose the dashboard and `ssl: true` you need to set
  26. # the corresponding "backend protocol" annotation(s) for your ingress controller of choice)
  27. ssl: false
  28. # Network configuration, see: https://github.com/rook/rook/blob/master/Documentation/CRDs/Cluster/ceph-cluster-crd.md#network-configuration-settings
  29. network:
  30. # enable host networking
  31. provider: host
  32. # enable log collector, daemons will log on files and rotate
  33. logCollector:
  34. enabled: false
  35. # To control where various services will be scheduled by kubernetes, use the placement configuration sections below.
  36. # The example under 'all' would have all services scheduled on kubernetes nodes labeled with 'role=storage-node' and
  37. # tolerate taints with a key of 'storage-node'.
  38. placement:
  39. all:
  40. nodeAffinity:
  41. requiredDuringSchedulingIgnoredDuringExecution:
  42. nodeSelectorTerms:
  43. - matchExpressions:
  44. - key: storage-node
  45. operator: In
  46. values:
  47. - "true"
  48. tolerations:
  49. - key: storage-node
  50. operator: Equal
  51. value: "true"
  52. effect: PreferNoSchedule
  53. # Ensure osd_memory_target_autotune is true if not limiting mgr & mon memory
  54. resources:
  55. mgr:
  56. requests:
  57. cpu: 0
  58. memory: 0
  59. limits:
  60. cpu: 0
  61. memory: 0
  62. mon:
  63. requests:
  64. cpu: 0
  65. memory: 0
  66. limits:
  67. cpu: 0
  68. memory: 0
  69. osd:
  70. requests:
  71. cpu: 0
  72. memory: 0
  73. limits:
  74. cpu: 0
  75. # Ensure osd_memory_target reflects this
  76. # https://docs.ceph.com/en/latest/start/hardware-recommendations/#ram
  77. # memory: "3Gi"
  78. memory: "4Gi"
  79. prepareosd:
  80. # limits: It is not recommended to set limits on the OSD prepare job
  81. # since it's a one-time burst for memory that must be allowed to
  82. # complete without an OOM kill. Note however that if a k8s
  83. # limitRange guardrail is defined external to Rook, the lack of
  84. # a limit here may result in a sync failure, in which case a
  85. # limit should be added. 1200Mi may suffice for up to 15Ti
  86. # OSDs ; for larger devices 2Gi may be required.
  87. # cf. https://github.com/rook/rook/pull/11103
  88. requests:
  89. cpu: 0
  90. memory: "500Mi"
  91. mgr-sidecar:
  92. limits:
  93. cpu: 0
  94. memory: "100Mi"
  95. requests:
  96. cpu: 0
  97. memory: "40Mi"
  98. crashcollector:
  99. limits:
  100. cpu: 0
  101. memory: "60Mi"
  102. requests:
  103. cpu: 0
  104. memory: "60Mi"
  105. logcollector:
  106. limits:
  107. cpu: 0
  108. memory: "1Gi"
  109. requests:
  110. cpu: 0
  111. memory: "100Mi"
  112. cleanup:
  113. limits:
  114. cpu: 0
  115. memory: "1Gi"
  116. requests:
  117. cpu: 0
  118. memory: "100Mi"
  119. exporter:
  120. limits:
  121. cpu: 0
  122. memory: "128Mi"
  123. requests:
  124. cpu: 0
  125. memory: "50Mi"
  126. # -- A list of CephBlockPool configurations to deploy
  127. # @default -- See [below](#ceph-block-pools)
  128. cephBlockPools:
  129. - name: ceph-blockpool
  130. # see https://github.com/rook/rook/blob/master/Documentation/CRDs/Block-Storage/ceph-block-pool-crd.md#spec for available configuration
  131. spec:
  132. failureDomain: host
  133. replicated:
  134. size: 3
  135. deviceClass: hdd
  136. # Enables collecting RBD per-image IO statistics by enabling dynamic OSD performance counters. Defaults to false.
  137. # For reference: https://docs.ceph.com/docs/latest/mgr/prometheus/#rbd-io-statistics
  138. enableRBDStats: true
  139. storageClass:
  140. enabled: true
  141. name: ceph-block
  142. isDefault: true
  143. reclaimPolicy: Delete
  144. allowVolumeExpansion: true
  145. volumeBindingMode: "Immediate"
  146. mountOptions: []
  147. # see https://kubernetes.io/docs/concepts/storage/storage-classes/#allowed-topologies
  148. allowedTopologies: []
  149. # - matchLabelExpressions:
  150. # - key: rook-ceph-role
  151. # values:
  152. # - storage-node
  153. # see https://github.com/rook/rook/blob/master/Documentation/Storage-Configuration/Block-Storage-RBD/block-storage.md#provision-storage for available configuration
  154. parameters:
  155. # (optional) mapOptions is a comma-separated list of map options.
  156. # For krbd options refer
  157. # https://docs.ceph.com/docs/latest/man/8/rbd/#kernel-rbd-krbd-options
  158. # For nbd options refer
  159. # https://docs.ceph.com/docs/latest/man/8/rbd-nbd/#options
  160. # mapOptions: lock_on_read,queue_depth=1024
  161. # (optional) unmapOptions is a comma-separated list of unmap options.
  162. # For krbd options refer
  163. # https://docs.ceph.com/docs/latest/man/8/rbd/#kernel-rbd-krbd-options
  164. # For nbd options refer
  165. # https://docs.ceph.com/docs/latest/man/8/rbd-nbd/#options
  166. # unmapOptions: force
  167. # RBD image format. Defaults to "2".
  168. imageFormat: "2"
  169. # RBD image features, equivalent to OR'd bitfield value: 63
  170. # Available for imageFormat: "2". Older releases of CSI RBD
  171. # support only the `layering` feature. The Linux kernel (KRBD) supports the
  172. # full feature complement as of 5.4
  173. imageFeatures: layering
  174. # These secrets contain Ceph admin credentials.
  175. csi.storage.k8s.io/provisioner-secret-name: rook-csi-rbd-provisioner
  176. csi.storage.k8s.io/provisioner-secret-namespace: "{{ .Release.Namespace }}"
  177. csi.storage.k8s.io/controller-expand-secret-name: rook-csi-rbd-provisioner
  178. csi.storage.k8s.io/controller-expand-secret-namespace: "{{ .Release.Namespace }}"
  179. csi.storage.k8s.io/node-stage-secret-name: rook-csi-rbd-node
  180. csi.storage.k8s.io/node-stage-secret-namespace: "{{ .Release.Namespace }}"
  181. # Specify the filesystem type of the volume. If not specified, csi-provisioner
  182. # will set default as `ext4`. Note that `xfs` is not recommended due to potential deadlock
  183. # in hyperconverged settings where the volume is mounted on the same node as the osds.
  184. csi.storage.k8s.io/fstype: ext4
  185. - name: ceph-blockpool-ssd
  186. spec:
  187. failureDomain: host
  188. replicated:
  189. size: 3
  190. deviceClass: ssd
  191. enableRBDStats: true
  192. storageClass:
  193. enabled: true
  194. name: ceph-block-ssd
  195. isDefault: false
  196. reclaimPolicy: Delete
  197. allowVolumeExpansion: true
  198. volumeBindingMode: "Immediate"
  199. mountOptions: []
  200. allowedTopologies: []
  201. parameters:
  202. imageFormat: "2"
  203. imageFeatures: layering
  204. # These secrets contain Ceph admin credentials.
  205. csi.storage.k8s.io/provisioner-secret-name: rook-csi-rbd-provisioner
  206. csi.storage.k8s.io/provisioner-secret-namespace: "{{ .Release.Namespace }}"
  207. csi.storage.k8s.io/controller-expand-secret-name: rook-csi-rbd-provisioner
  208. csi.storage.k8s.io/controller-expand-secret-namespace: "{{ .Release.Namespace }}"
  209. csi.storage.k8s.io/node-stage-secret-name: rook-csi-rbd-node
  210. csi.storage.k8s.io/node-stage-secret-namespace: "{{ .Release.Namespace }}"
  211. csi.storage.k8s.io/fstype: ext4
  212. # -- A list of CephFileSystem configurations to deploy
  213. # @default -- See [below](#ceph-file-systems)
  214. cephFileSystems: []
  215. # -- Settings for the filesystem snapshot class
  216. # @default -- See [CephFS Snapshots](../Storage-Configuration/Ceph-CSI/ceph-csi-snapshot.md#cephfs-snapshots)
  217. cephFileSystemVolumeSnapshotClass:
  218. enabled: true
  219. name: ceph-filesystem
  220. isDefault: true
  221. deletionPolicy: Delete
  222. annotations: {}
  223. labels:
  224. velero.io/csi-volumesnapshot-class: "true"
  225. # see https://rook.io/docs/rook/v1.10/Storage-Configuration/Ceph-CSI/ceph-csi-snapshot/#cephfs-snapshots for available configuration
  226. parameters: {}
  227. # -- Settings for the block pool snapshot class
  228. # @default -- See [RBD Snapshots](../Storage-Configuration/Ceph-CSI/ceph-csi-snapshot.md#rbd-snapshots)
  229. cephBlockPoolsVolumeSnapshotClass:
  230. enabled: true
  231. name: ceph-block
  232. isDefault: false
  233. deletionPolicy: Delete
  234. annotations: {}
  235. labels:
  236. velero.io/csi-volumesnapshot-class: "true"
  237. # see https://rook.io/docs/rook/v1.10/Storage-Configuration/Ceph-CSI/ceph-csi-snapshot/#rbd-snapshots for available configuration
  238. parameters: {}
  239. # -- A list of CephObjectStore configurations to deploy
  240. # @default -- See [below](#ceph-object-stores)
  241. cephObjectStores: []