-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingle-node-cluster-values.yaml
248 lines (232 loc) · 7.73 KB
/
single-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
246
247
248
# 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: 1
allowMultiplePerNode: true
mgr:
count: 1
allowMultiplePerNode: true
modules:
- name: rook
enabled: true
cephConfig:
global:
osd_pool_default_size: "1"
osd_pool_default_min_size: "1"
osd_pool_default_pg_num: "1"
mon_warn_on_pool_no_redundancy: "false"
bdev_flock_retry: "20"
bluefs_buffered_io: "false"
mon_data_avail_warn: "10"
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: true
# single-node, single-device configuration
devices:
- name: ###ZARF_VAR_DEVICE_NAME###
config:
deviceClass: ###ZARF_VAR_DEVICE_CLASS###
# Needs to be defined when disks are smaller than 100 GB
databaseSizeMB: "###ZARF_VAR_DATABASE_SIZE###"
osdsPerDevice: "1"
# No need for dynamic resource management in single-node Rook-Ceph cluster
disruptionManagement:
managePodBudgets: false
cephBlockPools:
- name: ceph-blockpool
spec:
failureDomain: "host"
isDefault: ###ZARF_VAR_CEPH_BLOCK_STORE_AS_DEFAULT###
replicated:
size: 1
requireSafeReplicaSize: false
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: 1
dataPools:
- failureDomain: "host"
replicated:
size: 1
name: data0
metadataServer:
activeCount: 1
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: 1
dataPool:
failureDomain: host
replicated:
size: 1
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: 1
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