refactor(rook-ceph): customize configuration

This commit is contained in:
Khue Doan 2024-03-10 13:35:16 +07:00
parent b4ba7ea6e2
commit 32a9aa94d5

View File

@ -1,2 +1,87 @@
rook-ceph: {}
rook-ceph-cluster: {}
rook-ceph:
monitoring:
enabled: true
rook-ceph-cluster:
monitoring:
enabled: true
createPrometheusRules: true
cephClusterSpec:
mon:
count: 3
mgr:
count: 2
dashboard:
ssl: false
logCollector:
enabled: false
resources:
mgr:
limits:
memory: "1Gi"
requests:
cpu: "100m"
memory: "512Mi"
mon:
limits:
memory: "2Gi"
requests:
cpu: "100m"
memory: "100Mi"
osd:
limits:
memory: "4Gi"
requests:
cpu: "100m"
memory: "512Mi"
cephBlockPools:
- name: standard-rwo
spec:
replicated:
size: 2
storageClass:
enabled: true
name: standard-rwo
isDefault: true
allowVolumeExpansion: true
parameters:
imageFeatures: layering,fast-diff,object-map,deep-flatten,exclusive-lock
csi.storage.k8s.io/provisioner-secret-name: rook-csi-rbd-provisioner
csi.storage.k8s.io/provisioner-secret-namespace: "{{ .Release.Namespace }}"
csi.storage.k8s.io/controller-expand-secret-name: rook-csi-rbd-provisioner
csi.storage.k8s.io/controller-expand-secret-namespace: "{{ .Release.Namespace }}"
csi.storage.k8s.io/node-stage-secret-name: rook-csi-rbd-node
csi.storage.k8s.io/node-stage-secret-namespace: "{{ .Release.Namespace }}"
cephFileSystems:
- name: standard-rwx
spec:
metadataPool:
replicated:
size: 2
dataPools:
- name: data0
replicated:
size: 2
metadataServer:
activeCount: 1
activeStandby: true
resources:
limits:
memory: "4Gi"
requests:
cpu: "100m"
memory: "100Mi"
priorityClassName: system-cluster-critical
storageClass:
enabled: true
name: standard-rwx
isDefault: false
allowVolumeExpansion: true
pool: data0
parameters:
csi.storage.k8s.io/provisioner-secret-name: rook-csi-cephfs-provisioner
csi.storage.k8s.io/provisioner-secret-namespace: "{{ .Release.Namespace }}"
csi.storage.k8s.io/controller-expand-secret-name: rook-csi-cephfs-provisioner
csi.storage.k8s.io/controller-expand-secret-namespace: "{{ .Release.Namespace }}"
csi.storage.k8s.io/node-stage-secret-name: rook-csi-cephfs-node
csi.storage.k8s.io/node-stage-secret-namespace: "{{ .Release.Namespace }}"
cephObjectStores: []