-
Notifications
You must be signed in to change notification settings - Fork 0
/
multi-node-cluster-values.yaml
245 lines (231 loc) · 8.55 KB
/
multi-node-cluster-values.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
# See the UDS RKE2 repository's documentation, `docs/ROOK-CEPH.md` for more details on values overrides
imagePullSecrets:
- name: private-registry
toolbox:
enabled: true
# TODO: renovate setup
image: ###ZARF_REGISTRY###/ironbank/opensource/ceph/ceph:v18.2.2
monitoring:
enabled: ###ZARF_VAR_ENABLE_MONITORING###
# Whether to create the Prometheus rules for Ceph alerts
createPrometheusRules: false
# The namespace in which to create the prometheus rules, if different from the rook cluster namespace.
# If you have multiple rook-ceph clusters in the same k8s cluster, choose the same namespace (ideally, namespace with prometheus
# deployed) to set rulesNamespaceOverride for all the clusters. Otherwise, you will get duplicate alerts with multiple alert definitions.
rulesNamespaceOverride: {}
# allow adding custom labels and annotations to the prometheus rule
prometheusRule:
labels: {}
annotations: {}
cephClusterSpec:
cephVersion:
# TODO: renovate setup
image: ###ZARF_REGISTRY###/ironbank/opensource/ceph/ceph:v18.2.2
allowUnsupported: true
mon:
count: "###ZARF_VAR_REPLICAS###"
allowMultiplePerNode: false
mgr:
count: "###ZARF_VAR_REPLICAS###"
allowMultiplePerNode: false
modules:
- name: rook
enabled: true
dashboard:
enabled: true
ssl: false
network:
# Use host networking to avoid CNI causing storage issues
# Equivalent to legacy `hostNetwork: true`
provider: "host"
connections:
encryption:
enabled: false
compression:
enabled: false
# These are the defaults, but can/should be modified as needed based on environment-specific needs
resources:
mgr:
limits:
memory: "1Gi"
requests:
cpu: "500m"
memory: "512Mi"
mon:
limits:
memory: "2Gi"
requests:
cpu: "1000m"
memory: "1Gi"
osd:
limits:
memory: "4Gi"
requests:
cpu: "1000m"
memory: "4Gi"
mgr-sidecar:
limits:
memory: "100Mi"
requests:
cpu: "100m"
memory: "40Mi"
crashcollector:
limits:
memory: "60Mi"
requests:
cpu: "100m"
memory: "60Mi"
logcollector:
limits:
memory: "1Gi"
requests:
cpu: "100m"
memory: "100Mi"
cleanup:
limits:
memory: "1Gi"
requests:
cpu: "500m"
memory: "100Mi"
exporter:
limits:
memory: "128Mi"
requests:
cpu: "50m"
memory: "50Mi"
# priority classes to apply to ceph resources
priorityClassNames:
mon: system-node-critical
osd: system-node-critical
mgr: system-cluster-critical
storage:
useAllNodes: true
useAllDevices: false
deviceFilter: ###ZARF_VAR_DEVICE_FILTER###
config:
# crushRoot: "custom-root" # specify a non-default root label for the CRUSH map
# metadataDevice: "md0" # specify a non-rotational storage so ceph-volume will use it as block db device of bluestore.
# databaseSizeMB: "1024" # uncomment if the disks are smaller than 100 GB
osdsPerDevice: "1" # this value can be overridden at the node or device level
# encryptedDevice: "false" # the default value for this option is "false"
# Individual nodes and their config can be specified as well, but 'useAllNodes' above must be set to false. Then, only the named
# nodes below will be used as storage resources. Each node's 'name' field should match their 'kubernetes.io/hostname' label.
nodes:
# - name: "172.17.4.201"
# devices: # specific devices to use for storage can be specified for each node
# - name: "sdb"
# - name: "nvme01" # multiple osds can be created on high performance devices
# config:
# osdsPerDevice: "5"
# - name: "/dev/disk/by-id/ata-ST4000DM004-XXXX" # devices can be specified using full udev paths
# config: # configuration can be specified at the node level which overrides the cluster level config
# - name: "172.17.4.301"
# deviceFilter: "^sd."
cephBlockPools:
- name: ceph-blockpool
spec:
failureDomain: "host"
isDefault: ###ZARF_VAR_CEPH_BLOCK_STORE_AS_DEFAULT###
replicated:
size: "###ZARF_VAR_REPLICAS###"
storageClass:
name: ceph-block
enabled: ###ZARF_VAR_ENABLE_CEPH_BLOCK_STORE###
isDefault: ###ZARF_VAR_CEPH_FILE_STORE_AS_DEFAULT###
reclaimPolicy: Delete
allowVolumeExpansion: true
volumeBindingMode: "Immediate"
parameters:
# RBD image format. Defaults to "2".
imageFormat: "2"
# RBD image features, equivalent to OR'd bitfield value: 63
# Available for imageFormat: "2". Older releases of CSI RBD
# support only the `layering` feature. The Linux kernel (KRBD) supports the
# full feature complement as of 5.4
imageFeatures: layering
# These secrets contain Ceph admin credentials.
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 }}"
# Specify the filesystem type of the volume. If not specified, csi-provisioner
# will set default as `ext4`. Note that `xfs` is not recommended due to potential deadlock
# in hyperconverged settings where the volume is mounted on the same node as the osds.
csi.storage.k8s.io/fstype: ext4
cephFileSystems:
- name: ceph-filesystem
spec:
metadataPool:
replicated:
size: "###ZARF_VAR_REPLICAS###"
dataPools:
- failureDomain: "host"
replicated:
size: "###ZARF_VAR_REPLICAS###"
name: data0
metadataServer:
activeCount: ###ZARF_VAR_ACTIVE_METADATA_SERVERS###
activeStandby: true
# These are the defaults, but can/should be modified as needed based on environment-specific needs
resources:
limits:
memory: "4Gi"
requests:
cpu: "1000m"
memory: "4Gi"
priorityClassName: system-cluster-critical
storageClass:
name: ceph-filesystem
enabled: ###ZARF_VAR_ENABLE_CEPH_FILE_STORE###
isDefault: ###ZARF_VAR_CEPH_FILE_STORE_AS_DEFAULT###
# (Optional) specify a data pool to use, must be the name of one of the data pools above, 'data0' by default
pool: data0
reclaimPolicy: Delete
allowVolumeExpansion: true
volumeBindingMode: "Immediate"
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 }}"
# Specify the filesystem type of the volume. If not specified, csi-provisioner
# will set default as `ext4`. Note that `xfs` is not recommended due to potential deadlock
# in hyperconverged settings where the volume is mounted on the same node as the osds.
csi.storage.k8s.io/fstype: ext4
cephObjectStores:
- name: ceph-objectstore
spec:
metadataPool:
failureDomain: "host"
replicated:
size: "###ZARF_VAR_REPLICAS###"
dataPool:
failureDomain: host
replicated:
size: "###ZARF_VAR_REPLICAS###"
preservePoolsOnDelete: true
gateway:
port: 80
# These are the defaults, but can/should be modified as needed based on environment-specific needs
resources:
limits:
memory: "2Gi"
requests:
cpu: "1000m"
memory: "1Gi"
instances: "###ZARF_VAR_REPLICAS###"
priorityClassName: system-cluster-critical
storageClass:
name: ceph-objectstore
enabled: ###ZARF_VAR_ENABLE_CEPH_BLOCK_STORE###
isDefault: ###ZARF_VAR_CEPH_OBJECT_STORE_AS_DEFAULT###
reclaimPolicy: Delete
volumeBindingMode: "Immediate"
parameters:
region: ###ZARF_VAR_REGION###
ingress:
enabled: false