blob: 2ae660f142904c16f7482183044570cc6799c10d [file] [log] [blame]
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +04001categories:
2- storage
3namespace: longhorn-system
4questions:
5- variable: image.defaultImage
6 default: "true"
7 description: "Use default Longhorn images"
8 label: Use Default Images
9 type: boolean
10 show_subquestion_if: false
11 group: "Longhorn Images"
12 subquestions:
13 - variable: image.longhorn.manager.repository
14 default: longhornio/longhorn-manager
gio16bb6382025-05-21 18:42:40 +040015 description: "Repository for the Longhorn Manager image."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040016 type: string
17 label: Longhorn Manager Image Repository
18 group: "Longhorn Images Settings"
19 - variable: image.longhorn.manager.tag
gioc9b92b12025-05-22 08:57:18 +040020 default: v1.7.3
21 description: "Tag for the Longhorn Manager image."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040022 type: string
23 label: Longhorn Manager Image Tag
24 group: "Longhorn Images Settings"
25 - variable: image.longhorn.engine.repository
26 default: longhornio/longhorn-engine
gio16bb6382025-05-21 18:42:40 +040027 description: "Repository for the Longhorn Engine image."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040028 type: string
29 label: Longhorn Engine Image Repository
30 group: "Longhorn Images Settings"
31 - variable: image.longhorn.engine.tag
gioc9b92b12025-05-22 08:57:18 +040032 default: v1.7.3
33 description: "Tag for the Longhorn Engine image."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040034 type: string
35 label: Longhorn Engine Image Tag
36 group: "Longhorn Images Settings"
37 - variable: image.longhorn.ui.repository
gioc9b92b12025-05-22 08:57:18 +040038 default: longhornio/longhorn-ui
gio16bb6382025-05-21 18:42:40 +040039 description: "Repository for the Longhorn UI image."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040040 type: string
41 label: Longhorn UI Image Repository
42 group: "Longhorn Images Settings"
43 - variable: image.longhorn.ui.tag
gioc9b92b12025-05-22 08:57:18 +040044 default: v1.7.3
45 description: "Tag for the Longhorn UI image."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040046 type: string
47 label: Longhorn UI Image Tag
48 group: "Longhorn Images Settings"
49 - variable: image.longhorn.instanceManager.repository
50 default: longhornio/longhorn-instance-manager
gio16bb6382025-05-21 18:42:40 +040051 description: "Repository for the Longhorn Instance Manager image."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040052 type: string
53 label: Longhorn Instance Manager Image Repository
54 group: "Longhorn Images Settings"
55 - variable: image.longhorn.instanceManager.tag
gioc9b92b12025-05-22 08:57:18 +040056 default: v1.7.3
57 description: "Tag for the Longhorn Instance Manager image."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040058 type: string
59 label: Longhorn Instance Manager Image Tag
60 group: "Longhorn Images Settings"
61 - variable: image.longhorn.shareManager.repository
62 default: longhornio/longhorn-share-manager
gio16bb6382025-05-21 18:42:40 +040063 description: "Repository for the Longhorn Share Manager image."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040064 type: string
65 label: Longhorn Share Manager Image Repository
66 group: "Longhorn Images Settings"
67 - variable: image.longhorn.shareManager.tag
gioc9b92b12025-05-22 08:57:18 +040068 default: v1.7.3
69 description: "Tag for the Longhorn Share Manager image."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040070 type: string
71 label: Longhorn Share Manager Image Tag
72 group: "Longhorn Images Settings"
73 - variable: image.longhorn.backingImageManager.repository
74 default: longhornio/backing-image-manager
gio16bb6382025-05-21 18:42:40 +040075 description: "Repository for the Backing Image Manager image. When unspecified, Longhorn uses the default value."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040076 type: string
77 label: Longhorn Backing Image Manager Image Repository
78 group: "Longhorn Images Settings"
79 - variable: image.longhorn.backingImageManager.tag
gioc9b92b12025-05-22 08:57:18 +040080 default: v1.7.3
81 description: "Tag for the Backing Image Manager image. When unspecified, Longhorn uses the default value."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040082 type: string
83 label: Longhorn Backing Image Manager Image Tag
84 group: "Longhorn Images Settings"
85 - variable: image.longhorn.supportBundleKit.repository
86 default: longhornio/support-bundle-kit
gio16bb6382025-05-21 18:42:40 +040087 description: "Repository for the Longhorn Support Bundle Manager image."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040088 type: string
89 label: Longhorn Support Bundle Kit Image Repository
90 group: "Longhorn Images Settings"
91 - variable: image.longhorn.supportBundleKit.tag
gioc9b92b12025-05-22 08:57:18 +040092 default: v0.0.51
gio16bb6382025-05-21 18:42:40 +040093 description: "Tag for the Longhorn Support Bundle Manager image."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040094 type: string
95 label: Longhorn Support Bundle Kit Image Tag
96 group: "Longhorn Images Settings"
97 - variable: image.csi.attacher.repository
98 default: longhornio/csi-attacher
gio16bb6382025-05-21 18:42:40 +040099 description: "Repository for the CSI attacher image. When unspecified, Longhorn uses the default value."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400100 type: string
101 label: Longhorn CSI Attacher Image Repository
102 group: "Longhorn CSI Driver Images"
103 - variable: image.csi.attacher.tag
gioc9b92b12025-05-22 08:57:18 +0400104 default: v4.8.0
gio16bb6382025-05-21 18:42:40 +0400105 description: "Tag for the CSI attacher image. When unspecified, Longhorn uses the default value."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400106 type: string
107 label: Longhorn CSI Attacher Image Tag
108 group: "Longhorn CSI Driver Images"
109 - variable: image.csi.provisioner.repository
110 default: longhornio/csi-provisioner
gio16bb6382025-05-21 18:42:40 +0400111 description: "Repository for the CSI Provisioner image. When unspecified, Longhorn uses the default value."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400112 type: string
113 label: Longhorn CSI Provisioner Image Repository
114 group: "Longhorn CSI Driver Images"
115 - variable: image.csi.provisioner.tag
gioc9b92b12025-05-22 08:57:18 +0400116 default: v4.0.1-20250204
gio16bb6382025-05-21 18:42:40 +0400117 description: "Tag for the CSI Provisioner image. When unspecified, Longhorn uses the default value."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400118 type: string
119 label: Longhorn CSI Provisioner Image Tag
120 group: "Longhorn CSI Driver Images"
121 - variable: image.csi.nodeDriverRegistrar.repository
122 default: longhornio/csi-node-driver-registrar
gio16bb6382025-05-21 18:42:40 +0400123 description: "Repository for the CSI Node Driver Registrar image. When unspecified, Longhorn uses the default value."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400124 type: string
125 label: Longhorn CSI Node Driver Registrar Image Repository
126 group: "Longhorn CSI Driver Images"
127 - variable: image.csi.nodeDriverRegistrar.tag
gioc9b92b12025-05-22 08:57:18 +0400128 default: v2.13.0
gio16bb6382025-05-21 18:42:40 +0400129 description: "Tag for the CSI Node Driver Registrar image. When unspecified, Longhorn uses the default value."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400130 type: string
131 label: Longhorn CSI Node Driver Registrar Image Tag
132 group: "Longhorn CSI Driver Images"
133 - variable: image.csi.resizer.repository
134 default: longhornio/csi-resizer
gio16bb6382025-05-21 18:42:40 +0400135 description: "Repository for the CSI Resizer image. When unspecified, Longhorn uses the default value."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400136 type: string
137 label: Longhorn CSI Driver Resizer Image Repository
138 group: "Longhorn CSI Driver Images"
139 - variable: image.csi.resizer.tag
gioc9b92b12025-05-22 08:57:18 +0400140 default: v1.13.1
gio16bb6382025-05-21 18:42:40 +0400141 description: "Tag for the CSI Resizer image. When unspecified, Longhorn uses the default value."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400142 type: string
143 label: Longhorn CSI Driver Resizer Image Tag
144 group: "Longhorn CSI Driver Images"
145 - variable: image.csi.snapshotter.repository
146 default: longhornio/csi-snapshotter
gio16bb6382025-05-21 18:42:40 +0400147 description: "Repository for the CSI Snapshotter image. When unspecified, Longhorn uses the default value."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400148 type: string
149 label: Longhorn CSI Driver Snapshotter Image Repository
150 group: "Longhorn CSI Driver Images"
151 - variable: image.csi.snapshotter.tag
gioc9b92b12025-05-22 08:57:18 +0400152 default: v7.0.2-20250204
gio16bb6382025-05-21 18:42:40 +0400153 description: "Tag for the CSI Snapshotter image. When unspecified, Longhorn uses the default value."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400154 type: string
155 label: Longhorn CSI Driver Snapshotter Image Tag
156 group: "Longhorn CSI Driver Images"
157 - variable: image.csi.livenessProbe.repository
158 default: longhornio/livenessprobe
gio16bb6382025-05-21 18:42:40 +0400159 description: "Repository for the CSI liveness probe image. When unspecified, Longhorn uses the default value."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400160 type: string
161 label: Longhorn CSI Liveness Probe Image Repository
162 group: "Longhorn CSI Driver Images"
163 - variable: image.csi.livenessProbe.tag
gioc9b92b12025-05-22 08:57:18 +0400164 default: v2.15.0
gio16bb6382025-05-21 18:42:40 +0400165 description: "Tag for the CSI liveness probe image. When unspecified, Longhorn uses the default value."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400166 type: string
167 label: Longhorn CSI Liveness Probe Image Tag
168 group: "Longhorn CSI Driver Images"
169- variable: privateRegistry.registryUrl
170 label: Private registry URL
gio16bb6382025-05-21 18:42:40 +0400171 description: "URL of a private registry. When unspecified, Longhorn uses the default system registry."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400172 group: "Private Registry Settings"
173 type: string
174 default: ""
175- variable: privateRegistry.registrySecret
176 label: Private registry secret name
gio16bb6382025-05-21 18:42:40 +0400177 description: "Kubernetes secret that allows you to pull images from a private registry. This setting applies only when creation of private registry secrets is enabled. You must include the private registry name in the secret name."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400178 group: "Private Registry Settings"
179 type: string
180 default: ""
181- variable: privateRegistry.createSecret
182 default: "true"
gio16bb6382025-05-21 18:42:40 +0400183 description: "Setting that allows you to create a private registry secret."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400184 type: boolean
185 group: "Private Registry Settings"
186 label: Create Secret for Private Registry Settings
187 show_subquestion_if: true
188 subquestions:
189 - variable: privateRegistry.registryUser
190 label: Private registry user
gio16bb6382025-05-21 18:42:40 +0400191 description: "User account used for authenticating with a private registry."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400192 type: string
193 default: ""
194 - variable: privateRegistry.registryPasswd
195 label: Private registry password
gio16bb6382025-05-21 18:42:40 +0400196 description: "Password for authenticating with a private registry."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400197 type: password
198 default: ""
199- variable: longhorn.default_setting
200 default: "false"
201 description: "Customize the default settings before installing Longhorn for the first time. This option will only work if the cluster hasn't installed Longhorn."
202 label: "Customize Default Settings"
203 type: boolean
204 show_subquestion_if: true
205 group: "Longhorn Default Settings"
206 subquestions:
207 - variable: csi.kubeletRootDir
208 default:
gio16bb6382025-05-21 18:42:40 +0400209 description: "kubelet root directory. When unspecified, Longhorn uses the default value."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400210 type: string
211 label: Kubelet Root Directory
212 group: "Longhorn CSI Driver Settings"
213 - variable: csi.attacherReplicaCount
214 type: int
215 default: 3
216 min: 1
217 max: 10
gio16bb6382025-05-21 18:42:40 +0400218 description: "Replica count of the CSI Attacher. When unspecified, Longhorn uses the default value (\"3\")."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400219 label: Longhorn CSI Attacher replica count
220 group: "Longhorn CSI Driver Settings"
221 - variable: csi.provisionerReplicaCount
222 type: int
223 default: 3
224 min: 1
225 max: 10
gio16bb6382025-05-21 18:42:40 +0400226 description: "Replica count of the CSI Provisioner. When unspecified, Longhorn uses the default value (\"3\")."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400227 label: Longhorn CSI Provisioner replica count
228 group: "Longhorn CSI Driver Settings"
229 - variable: csi.resizerReplicaCount
230 type: int
231 default: 3
232 min: 1
233 max: 10
gio16bb6382025-05-21 18:42:40 +0400234 description: "Replica count of the CSI Resizer. When unspecified, Longhorn uses the default value (\"3\")."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400235 label: Longhorn CSI Resizer replica count
236 group: "Longhorn CSI Driver Settings"
237 - variable: csi.snapshotterReplicaCount
238 type: int
239 default: 3
240 min: 1
241 max: 10
gio16bb6382025-05-21 18:42:40 +0400242 description: "Replica count of the CSI Snapshotter. When unspecified, Longhorn uses the default value (\"3\")."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400243 label: Longhorn CSI Snapshotter replica count
244 group: "Longhorn CSI Driver Settings"
245 - variable: defaultSettings.backupTarget
246 label: Backup Target
gio16bb6382025-05-21 18:42:40 +0400247 description: "Endpoint used to access the backupstore. (Options: \"NFS\", \"CIFS\", \"AWS\", \"GCP\", \"AZURE\")"
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400248 group: "Longhorn Default Settings"
249 type: string
250 default:
251 - variable: defaultSettings.backupTargetCredentialSecret
252 label: Backup Target Credential Secret
gio16bb6382025-05-21 18:42:40 +0400253 description: "Name of the Kubernetes secret associated with the backup target."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400254 group: "Longhorn Default Settings"
255 type: string
256 default:
257 - variable: defaultSettings.allowRecurringJobWhileVolumeDetached
258 label: Allow Recurring Job While Volume Is Detached
gio16bb6382025-05-21 18:42:40 +0400259 description: 'Setting that allows Longhorn to automatically attach a volume and create snapshots or backups when recurring jobs are run.'
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400260 group: "Longhorn Default Settings"
261 type: boolean
262 default: "false"
gio16bb6382025-05-21 18:42:40 +0400263 - variable: defaultSettings.snapshotMaxCount
264 label: Snapshot Maximum Count
265 description: 'Maximum snapshot count for a volume. The value should be between 2 to 250.'
266 group: "Longhorn Default Settings"
267 type: int
268 min: 2
269 max: 250
270 default: 250
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400271 - variable: defaultSettings.createDefaultDiskLabeledNodes
272 label: Create Default Disk on Labeled Nodes
gio16bb6382025-05-21 18:42:40 +0400273 description: 'Setting that allows Longhorn to automatically create a default disk only on nodes with the label "node.longhorn.io/create-default-disk=true" (if no other disks exist). When this setting is disabled, Longhorn creates a default disk on each node that is added to the cluster.'
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400274 group: "Longhorn Default Settings"
275 type: boolean
276 default: "false"
277 - variable: defaultSettings.defaultDataPath
278 label: Default Data Path
gio16bb6382025-05-21 18:42:40 +0400279 description: 'Default path for storing data on a host. The default value is "/var/lib/longhorn/".'
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400280 group: "Longhorn Default Settings"
281 type: string
282 default: "/var/lib/longhorn/"
283 - variable: defaultSettings.defaultDataLocality
284 label: Default Data Locality
gio16bb6382025-05-21 18:42:40 +0400285 description: 'Default data locality. A Longhorn volume has data locality if a local replica of the volume exists on the same node as the pod that is using the volume.'
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400286 group: "Longhorn Default Settings"
287 type: enum
288 options:
289 - "disabled"
290 - "best-effort"
291 default: "disabled"
292 - variable: defaultSettings.replicaSoftAntiAffinity
293 label: Replica Node Level Soft Anti-Affinity
gio16bb6382025-05-21 18:42:40 +0400294 description: 'Allow scheduling on nodes with existing healthy replicas of the same volume. By default, false.'
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400295 group: "Longhorn Default Settings"
296 type: boolean
297 default: "false"
298 - variable: defaultSettings.replicaAutoBalance
299 label: Replica Auto Balance
gio16bb6382025-05-21 18:42:40 +0400300 description: 'Enable this setting automatically re-balances replicas when discovered an available node.'
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400301 group: "Longhorn Default Settings"
302 type: enum
303 options:
304 - "disabled"
305 - "least-effort"
306 - "best-effort"
307 default: "disabled"
308 - variable: defaultSettings.storageOverProvisioningPercentage
309 label: Storage Over Provisioning Percentage
gio16bb6382025-05-21 18:42:40 +0400310 description: "Percentage of storage that can be allocated relative to hard drive capacity. The default value is 100."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400311 group: "Longhorn Default Settings"
312 type: int
313 min: 0
gio16bb6382025-05-21 18:42:40 +0400314 default: 100
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400315 - variable: defaultSettings.storageMinimalAvailablePercentage
316 label: Storage Minimal Available Percentage
gio16bb6382025-05-21 18:42:40 +0400317 description: "If the minimum available disk capacity exceeds the actual percentage of available disk capacity, the disk becomes unschedulable until more space is freed up. By default, 25."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400318 group: "Longhorn Default Settings"
319 type: int
320 min: 0
321 max: 100
322 default: 25
Giorgi Lekveishvili285ab622023-11-22 13:50:45 +0400323 - variable: defaultSettings.storageReservedPercentageForDefaultDisk
324 label: Storage Reserved Percentage For Default Disk
325 description: "The reserved percentage specifies the percentage of disk space that will not be allocated to the default disk on each new Longhorn node."
326 group: "Longhorn Default Settings"
327 type: int
328 min: 0
329 max: 100
330 default: 30
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400331 - variable: defaultSettings.upgradeChecker
332 label: Enable Upgrade Checker
gio16bb6382025-05-21 18:42:40 +0400333 description: 'Upgrade Checker that periodically checks for new Longhorn versions. When a new version is available, a notification appears on the Longhorn UI. This setting is enabled by default.'
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400334 group: "Longhorn Default Settings"
335 type: boolean
336 default: "true"
337 - variable: defaultSettings.defaultReplicaCount
338 label: Default Replica Count
gio16bb6382025-05-21 18:42:40 +0400339 description: "Default number of replicas for volumes created using the Longhorn UI. For Kubernetes configuration, modify the `numberOfReplicas` field in the StorageClass. The default value is \"3\"."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400340 group: "Longhorn Default Settings"
341 type: int
342 min: 1
343 max: 20
344 default: 3
345 - variable: defaultSettings.defaultLonghornStaticStorageClass
346 label: Default Longhorn Static StorageClass Name
gio16bb6382025-05-21 18:42:40 +0400347 description: "Default Longhorn StorageClass. \"storageClassName\" is assigned to PVs and PVCs that are created for an existing Longhorn volume. \"storageClassName\" can also be used as a label, so it is possible to use a Longhorn StorageClass to bind a workload to an existing PV without creating a Kubernetes StorageClass object. The default value is \"longhorn-static\"."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400348 group: "Longhorn Default Settings"
349 type: string
350 default: "longhorn-static"
351 - variable: defaultSettings.backupstorePollInterval
352 label: Backupstore Poll Interval
gio16bb6382025-05-21 18:42:40 +0400353 description: "Number of seconds that Longhorn waits before checking the backupstore for new backups. The default value is \"300\". When the value is \"0\", polling is disabled."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400354 group: "Longhorn Default Settings"
355 type: int
356 min: 0
357 default: 300
358 - variable: defaultSettings.failedBackupTTL
359 label: Failed Backup Time to Live
gio16bb6382025-05-21 18:42:40 +0400360 description: "Number of minutes that Longhorn keeps a failed backup resource. When the value is \"0\", automatic deletion is disabled."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400361 group: "Longhorn Default Settings"
362 type: int
363 min: 0
364 default: 1440
gioc9b92b12025-05-22 08:57:18 +0400365 - variable: defaultSettings.backupExecutionTimeout
366 label: Backup Execution Timeout
367 description: "Number of minutes that Longhorn allows for the backup execution. The default value is \"1\"."
368 group: "Longhorn Default Settings"
369 type: int
370 min: 1
371 default: 1
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400372 - variable: defaultSettings.restoreVolumeRecurringJobs
373 label: Restore Volume Recurring Jobs
gio16bb6382025-05-21 18:42:40 +0400374 description: "Restore recurring jobs from the backup volume on the backup target and create recurring jobs if not exist during a backup restoration."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400375 group: "Longhorn Default Settings"
376 type: boolean
377 default: "false"
378 - variable: defaultSettings.recurringSuccessfulJobsHistoryLimit
379 label: Cronjob Successful Jobs History Limit
380 description: "This setting specifies how many successful backup or snapshot job histories should be retained. History will not be retained if the value is 0."
381 group: "Longhorn Default Settings"
382 type: int
383 min: 0
384 default: 1
385 - variable: defaultSettings.recurringFailedJobsHistoryLimit
386 label: Cronjob Failed Jobs History Limit
gio16bb6382025-05-21 18:42:40 +0400387 description: 'Maximum number of failed recurring backup and snapshot jobs to be retained. When the value is "0", a history of failed recurring jobs is not retained.'
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400388 group: "Longhorn Default Settings"
389 type: int
390 min: 0
391 default: 1
gio16bb6382025-05-21 18:42:40 +0400392 - variable: defaultSettings.recurringJobMaxRetention
393 label: Maximum Retention Number for Recurring Job
394 description: "Maximum number of snapshots or backups to be retained."
395 group: "Longhorn Default Settings"
396 type: int
397 default: 100
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400398 - variable: defaultSettings.supportBundleFailedHistoryLimit
399 label: SupportBundle Failed History Limit
gio16bb6382025-05-21 18:42:40 +0400400 description: "This setting specifies how many failed support bundles can exist in the cluster. Set this value to **0** to have Longhorn automatically purge all failed support bundles."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400401 group: "Longhorn Default Settings"
402 type: int
403 min: 0
404 default: 1
405 - variable: defaultSettings.autoSalvage
406 label: Automatic salvage
gio16bb6382025-05-21 18:42:40 +0400407 description: "Setting that allows Longhorn to automatically salvage volumes when all replicas become faulty (for example, when the network connection is interrupted). Longhorn determines which replicas are usable and then uses these replicas for the volume. This setting is enabled by default."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400408 group: "Longhorn Default Settings"
409 type: boolean
410 default: "true"
411 - variable: defaultSettings.autoDeletePodWhenVolumeDetachedUnexpectedly
412 label: Automatically Delete Workload Pod when The Volume Is Detached Unexpectedly
gio16bb6382025-05-21 18:42:40 +0400413 description: 'Setting that allows Longhorn to automatically delete a workload pod that is managed by a controller (for example, daemonset) whenever a Longhorn volume is detached unexpectedly (for example, during Kubernetes upgrades). After deletion, the controller restarts the pod and then Kubernetes handles volume reattachment and remounting.'
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400414 group: "Longhorn Default Settings"
415 type: boolean
416 default: "true"
417 - variable: defaultSettings.disableSchedulingOnCordonedNode
418 label: Disable Scheduling On Cordoned Node
gio16bb6382025-05-21 18:42:40 +0400419 description: "Setting that prevents Longhorn Manager from scheduling replicas on a cordoned Kubernetes node. This setting is enabled by default."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400420 group: "Longhorn Default Settings"
421 type: boolean
422 default: "true"
423 - variable: defaultSettings.replicaZoneSoftAntiAffinity
424 label: Replica Zone Level Soft Anti-Affinity
gio16bb6382025-05-21 18:42:40 +0400425 description: "Allow scheduling new Replicas of Volume to the Nodes in the same Zone as existing healthy Replicas. Nodes don't belong to any Zone will be treated as in the same Zone. Notice that Longhorn relies on label `topology.kubernetes.io/zone=<Zone name of the node>` in the Kubernetes node object to identify the zone. By, default true."
426 group: "Longhorn Default Settings"
427 type: boolean
428 default: "true"
429 - variable: defaultSettings.replicaDiskSoftAntiAffinity
430 label: Replica Disk Level Soft Anti-Affinity
431 description: 'Allow scheduling on disks with existing healthy replicas of the same volume. By default, true.'
432 group: "Longhorn Default Settings"
433 type: boolean
434 default: "true"
435 - variable: defaultSettings.allowEmptyNodeSelectorVolume
436 label: Allow Empty Node Selector Volume
437 description: "Setting that allows scheduling of empty node selector volumes to any node."
438 group: "Longhorn Default Settings"
439 type: boolean
440 default: "true"
441 - variable: defaultSettings.allowEmptyDiskSelectorVolume
442 label: Allow Empty Disk Selector Volume
443 description: "Setting that allows scheduling of empty disk selector volumes to any disk."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400444 group: "Longhorn Default Settings"
445 type: boolean
446 default: "true"
447 - variable: defaultSettings.nodeDownPodDeletionPolicy
448 label: Pod Deletion Policy When Node is Down
gio16bb6382025-05-21 18:42:40 +0400449 description: "Policy that defines the action Longhorn takes when a volume is stuck with a StatefulSet or Deployment pod on a node that failed."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400450 group: "Longhorn Default Settings"
451 type: enum
452 options:
453 - "do-nothing"
454 - "delete-statefulset-pod"
455 - "delete-deployment-pod"
456 - "delete-both-statefulset-and-deployment-pod"
457 default: "do-nothing"
Giorgi Lekveishvili285ab622023-11-22 13:50:45 +0400458 - variable: defaultSettings.nodeDrainPolicy
459 label: Node Drain Policy
gio16bb6382025-05-21 18:42:40 +0400460 description: "Policy that defines the action Longhorn takes when a node with the last healthy replica of a volume is drained."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400461 group: "Longhorn Default Settings"
Giorgi Lekveishvili285ab622023-11-22 13:50:45 +0400462 type: enum
463 options:
gio16bb6382025-05-21 18:42:40 +0400464 - "block-for-eviction"
465 - "block-for-eviction-if-contains-last-replica"
Giorgi Lekveishvili285ab622023-11-22 13:50:45 +0400466 - "block-if-contains-last-replica"
467 - "allow-if-replica-is-stopped"
468 - "always-allow"
469 default: "block-if-contains-last-replica"
gio16bb6382025-05-21 18:42:40 +0400470 - variable: defaultSettings.detachManuallyAttachedVolumesWhenCordoned
471 label: Detach Manually Attached Volumes When Cordoned
472 description: "Setting that allows automatic detaching of manually-attached volumes when a node is cordoned."
473 group: "Longhorn Default Settings"
474 type: boolean
475 default: "false"
476 - variable: defaultSettings.priorityClass
477 label: Priority Class
478 description: "PriorityClass for system-managed Longhorn components. This setting can help prevent Longhorn components from being evicted under Node Pressure. Longhorn system contains user deployed components (E.g, Longhorn manager, Longhorn driver, Longhorn UI) and system managed components (E.g, instance manager, engine image, CSI driver, etc.) Note that this will be applied to Longhorn user-deployed components by default if there are no priority class values set yet, such as `longhornManager.priorityClass`. WARNING: DO NOT CHANGE THIS SETTING WITH ATTACHED VOLUMES."
479 group: "Longhorn Default Settings"
480 type: string
481 default: "longhorn-critical"
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400482 - variable: defaultSettings.replicaReplenishmentWaitInterval
483 label: Replica Replenishment Wait Interval
gio16bb6382025-05-21 18:42:40 +0400484 description: "The interval in seconds determines how long Longhorn will at least wait to reuse the existing data on a failed replica rather than directly creating a new replica for a degraded volume."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400485 group: "Longhorn Default Settings"
486 type: int
487 min: 0
488 default: 600
489 - variable: defaultSettings.concurrentReplicaRebuildPerNodeLimit
490 label: Concurrent Replica Rebuild Per Node Limit
gio16bb6382025-05-21 18:42:40 +0400491 description: "Maximum number of replicas that can be concurrently rebuilt on each node.
492 WARNING:
493 - The old setting \"Disable Replica Rebuild\" is replaced by this setting.
494 - Different from relying on replica starting delay to limit the concurrent rebuilding, if the rebuilding is disabled, replica object replenishment will be directly skipped.
495 - When the value is 0, the eviction and data locality feature won't work. But this shouldn't have any impact to any current replica rebuild and backup restore."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400496 group: "Longhorn Default Settings"
497 type: int
498 min: 0
499 default: 5
500 - variable: defaultSettings.concurrentVolumeBackupRestorePerNodeLimit
501 label: Concurrent Volume Backup Restore Per Node Limit
gio16bb6382025-05-21 18:42:40 +0400502 description: "Maximum number of volumes that can be concurrently restored on each node using a backup. When the value is \"0\", restoration of volumes using a backup is disabled."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400503 group: "Longhorn Default Settings"
504 type: int
505 min: 0
506 default: 5
507 - variable: defaultSettings.disableRevisionCounter
508 label: Disable Revision Counter
gio16bb6382025-05-21 18:42:40 +0400509 description: "Setting that disables the revision counter and thereby prevents Longhorn from tracking all write operations to a volume. When salvaging a volume, Longhorn uses properties of the \"volume-head-xxx.img\" file (the last file size and the last time the file was modified) to select the replica to be used for volume recovery. This setting applies only to volumes created using the Longhorn UI."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400510 group: "Longhorn Default Settings"
511 type: boolean
gioc9b92b12025-05-22 08:57:18 +0400512 default: "true"
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400513 - variable: defaultSettings.systemManagedPodsImagePullPolicy
514 label: System Managed Pod Image Pull Policy
gio16bb6382025-05-21 18:42:40 +0400515 description: "Image pull policy for system-managed pods, such as Instance Manager, engine images, and CSI Driver. Changes to the image pull policy are applied only after the system-managed pods restart."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400516 group: "Longhorn Default Settings"
517 type: enum
518 options:
519 - "if-not-present"
520 - "always"
521 - "never"
522 default: "if-not-present"
523 - variable: defaultSettings.allowVolumeCreationWithDegradedAvailability
524 label: Allow Volume Creation with Degraded Availability
gio16bb6382025-05-21 18:42:40 +0400525 description: "Setting that allows you to create and attach a volume without having all replicas scheduled at the time of creation."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400526 group: "Longhorn Default Settings"
527 type: boolean
528 default: "true"
529 - variable: defaultSettings.autoCleanupSystemGeneratedSnapshot
530 label: Automatically Cleanup System Generated Snapshot
gio16bb6382025-05-21 18:42:40 +0400531 description: "Setting that allows Longhorn to automatically clean up the system-generated snapshot after replica rebuilding is completed."
532 group: "Longhorn Default Settings"
533 type: boolean
534 default: "true"
535 - variable: defaultSettings.autoCleanupRecurringJobBackupSnapshot
536 label: Automatically Cleanup Recurring Job Backup Snapshot
537 description: "Setting that allows Longhorn to automatically clean up the snapshot generated by a recurring backup job."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400538 group: "Longhorn Default Settings"
539 type: boolean
540 default: "true"
541 - variable: defaultSettings.concurrentAutomaticEngineUpgradePerNodeLimit
542 label: Concurrent Automatic Engine Upgrade Per Node Limit
gio16bb6382025-05-21 18:42:40 +0400543 description: "Maximum number of engines that are allowed to concurrently upgrade on each node after Longhorn Manager is upgraded. When the value is \"0\", Longhorn does not automatically upgrade volume engines to the new default engine image version."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400544 group: "Longhorn Default Settings"
545 type: int
546 min: 0
547 default: 0
548 - variable: defaultSettings.backingImageCleanupWaitInterval
549 label: Backing Image Cleanup Wait Interval
gio16bb6382025-05-21 18:42:40 +0400550 description: "Number of minutes that Longhorn waits before cleaning up the backing image file when no replicas in the disk are using it."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400551 group: "Longhorn Default Settings"
552 type: int
553 min: 0
554 default: 60
555 - variable: defaultSettings.backingImageRecoveryWaitInterval
556 label: Backing Image Recovery Wait Interval
gio16bb6382025-05-21 18:42:40 +0400557 description: "Number of seconds that Longhorn waits before downloading a backing image file again when the status of all image disk files changes to \"failed\" or \"unknown\"."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400558 group: "Longhorn Default Settings"
559 type: int
560 min: 0
561 default: 300
Giorgi Lekveishvili285ab622023-11-22 13:50:45 +0400562 - variable: defaultSettings.guaranteedInstanceManagerCPU
563 label: Guaranteed Instance Manager CPU
gio16bb6382025-05-21 18:42:40 +0400564 description: "Percentage of the total allocatable CPU resources on each node to be reserved for each instance manager pod when the V1 Data Engine is enabled. The default value is \"12\".
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400565 WARNING:
gio16bb6382025-05-21 18:42:40 +0400566 - Value 0 means removing the CPU requests from spec of instance manager pods.
567 - Considering the possible number of new instance manager pods in a further system upgrade, this integer value ranges from 0 to 40.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400568 - One more set of instance manager pods may need to be deployed when the Longhorn system is upgraded. If current available CPUs of the nodes are not enough for the new instance manager pods, you need to detach the volumes using the oldest instance manager pods so that Longhorn can clean up the old pods automatically and release the CPU resources. And the new pods with the latest instance manager image will be launched then.
Giorgi Lekveishvili285ab622023-11-22 13:50:45 +0400569 - This global setting will be ignored for a node if the field \"InstanceManagerCPURequest\" on the node is set.
570 - After this setting is changed, all instance manager pods using this global setting on all the nodes will be automatically restarted. In other words, DO NOT CHANGE THIS SETTING WITH ATTACHED VOLUMES."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400571 group: "Longhorn Default Settings"
572 type: int
573 min: 0
574 max: 40
575 default: 12
Giorgi Lekveishvili285ab622023-11-22 13:50:45 +0400576 - variable: defaultSettings.logLevel
577 label: Log Level
gio16bb6382025-05-21 18:42:40 +0400578 description: 'Log levels that indicate the type and severity of logs in Longhorn Manager. The default value is "Info". (Options: "Panic", "Fatal", "Error", "Warn", "Info", "Debug", "Trace")'
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400579 group: "Longhorn Default Settings"
Giorgi Lekveishvili285ab622023-11-22 13:50:45 +0400580 type: string
581 default: "Info"
gio16bb6382025-05-21 18:42:40 +0400582 - variable: defaultSettings.disableSnapshotPurge
583 label: Disable Snapshot Purge
584 description: "Setting that temporarily prevents all attempts to purge volume snapshots."
585 group: "Longhorn Default Settings"
586 type: boolean
587 default: "false"
gioc9b92b12025-05-22 08:57:18 +0400588 - variable: defaultSettings.freezeFilesystemForSnapshot
589 description: "Setting that freezes the filesystem on the root partition before a snapshot is created."
590 group: "Longhorn Default Settings"
591 type: boolean
592 default: "false"
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400593- variable: defaultSettings.kubernetesClusterAutoscalerEnabled
594 label: Kubernetes Cluster Autoscaler Enabled (Experimental)
gio16bb6382025-05-21 18:42:40 +0400595 description: "Setting that notifies Longhorn that the cluster is using the Kubernetes Cluster Autoscaler.
596 WARNING:
597 - Replica rebuilding could be expensive because nodes with reusable replicas could get removed by the Kubernetes Cluster Autoscaler."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400598 group: "Longhorn Default Settings"
599 type: boolean
600 default: false
601- variable: defaultSettings.orphanAutoDeletion
602 label: Orphaned Data Cleanup
gio16bb6382025-05-21 18:42:40 +0400603 description: "Setting that allows Longhorn to automatically delete an orphaned resource and the corresponding data (for example, stale replicas). Orphaned resources on failed or unknown nodes are not automatically cleaned up."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400604 group: "Longhorn Default Settings"
605 type: boolean
606 default: false
607- variable: defaultSettings.storageNetwork
608 label: Storage Network
609 description: "Longhorn uses the storage network for in-cluster data traffic. Leave this blank to use the Kubernetes cluster network.
gio16bb6382025-05-21 18:42:40 +0400610 WARNING:
611 - This setting should change after detaching all Longhorn volumes, as some of the Longhorn system component pods will get recreated to apply the setting. Longhorn will try to block this setting update when there are attached volumes."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400612 group: "Longhorn Default Settings"
613 type: string
614 default:
615- variable: defaultSettings.deletingConfirmationFlag
616 label: Deleting Confirmation Flag
gio16bb6382025-05-21 18:42:40 +0400617 description: "Flag that prevents accidental uninstallation of Longhorn."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400618 group: "Longhorn Default Settings"
619 type: boolean
620 default: "false"
621- variable: defaultSettings.engineReplicaTimeout
622 label: Timeout between Engine and Replica
gio16bb6382025-05-21 18:42:40 +0400623 description: "Timeout between the Longhorn Engine and replicas. Specify a value between \"8\" and \"30\" seconds. The default value is \"8\"."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400624 group: "Longhorn Default Settings"
625 type: int
626 default: "8"
627- variable: defaultSettings.snapshotDataIntegrity
628 label: Snapshot Data Integrity
gio16bb6382025-05-21 18:42:40 +0400629 description: "This setting allows users to enable or disable snapshot hashing and data integrity checking."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400630 group: "Longhorn Default Settings"
631 type: string
632 default: "disabled"
633- variable: defaultSettings.snapshotDataIntegrityImmediateCheckAfterSnapshotCreation
634 label: Immediate Snapshot Data Integrity Check After Creating a Snapshot
635 description: "Hashing snapshot disk files impacts the performance of the system. The immediate snapshot hashing and checking can be disabled to minimize the impact after creating a snapshot."
636 group: "Longhorn Default Settings"
637 type: boolean
638 default: "false"
639- variable: defaultSettings.snapshotDataIntegrityCronjob
640 label: Snapshot Data Integrity Check CronJob
gio16bb6382025-05-21 18:42:40 +0400641 description: "Unix-cron string format. The setting specifies when Longhorn checks the data integrity of snapshot disk files."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400642 group: "Longhorn Default Settings"
643 type: string
644 default: "0 0 */7 * *"
645- variable: defaultSettings.removeSnapshotsDuringFilesystemTrim
646 label: Remove Snapshots During Filesystem Trim
gio16bb6382025-05-21 18:42:40 +0400647 description: "This setting allows Longhorn filesystem trim feature to automatically mark the latest snapshot and its ancestors as removed and stops at the snapshot containing multiple children."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400648 group: "Longhorn Default Settings"
649 type: boolean
650 default: "false"
651- variable: defaultSettings.fastReplicaRebuildEnabled
652 label: Fast Replica Rebuild Enabled
gio16bb6382025-05-21 18:42:40 +0400653 description: "Setting that allows fast rebuilding of replicas using the checksum of snapshot disk files. Before enabling this setting, you must set the snapshot-data-integrity value to \"enable\" or \"fast-check\"."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400654 group: "Longhorn Default Settings"
655 type: boolean
656 default: false
657- variable: defaultSettings.replicaFileSyncHttpClientTimeout
658 label: Timeout of HTTP Client to Replica File Sync Server
659 description: "In seconds. The setting specifies the HTTP client timeout to the file sync server."
660 group: "Longhorn Default Settings"
661 type: int
662 default: "30"
gioc9b92b12025-05-22 08:57:18 +0400663- variable: defaultSettings.longGRPCTimeOut
664 label: Long gRPC Timeout
665 description: "Number of seconds that Longhorn allows for the completion of replica rebuilding and snapshot cloning operations."
666 group: "Longhorn Default Settings"
667 type: int
668 default: "86400"
Giorgi Lekveishvili285ab622023-11-22 13:50:45 +0400669- variable: defaultSettings.backupCompressionMethod
670 label: Backup Compression Method
gio16bb6382025-05-21 18:42:40 +0400671 description: "Setting that allows you to specify a backup compression method."
Giorgi Lekveishvili285ab622023-11-22 13:50:45 +0400672 group: "Longhorn Default Settings"
673 type: string
674 default: "lz4"
675- variable: defaultSettings.backupConcurrentLimit
676 label: Backup Concurrent Limit Per Backup
gio16bb6382025-05-21 18:42:40 +0400677 description: "Maximum number of worker threads that can concurrently run for each backup."
Giorgi Lekveishvili285ab622023-11-22 13:50:45 +0400678 group: "Longhorn Default Settings"
679 type: int
680 min: 1
681 default: 2
682- variable: defaultSettings.restoreConcurrentLimit
683 label: Restore Concurrent Limit Per Backup
684 description: "This setting controls how many worker threads per restore concurrently."
685 group: "Longhorn Default Settings"
686 type: int
687 min: 1
688 default: 2
gio16bb6382025-05-21 18:42:40 +0400689- variable: defaultSettings.allowCollectingLonghornUsageMetrics
690 label: Allow Collecting Longhorn Usage Metrics
691 description: "Setting that allows Longhorn to periodically collect anonymous usage data for product improvement purposes. Longhorn sends collected data to the [Upgrade Responder](https://github.com/longhorn/upgrade-responder) server, which is the data source of the Longhorn Public Metrics Dashboard (https://metrics.longhorn.io). The Upgrade Responder server does not store data that can be used to identify clients, including IP addresses."
692 group: "Longhorn Default Settings"
693 type: boolean
694 default: true
695- variable: defaultSettings.v1DataEngine
696 label: V1 Data Engine
697 description: "Setting that allows you to enable the V1 Data Engine."
698 group: "Longhorn V1 Data Engine Settings"
699 type: boolean
700 default: true
Giorgi Lekveishvili285ab622023-11-22 13:50:45 +0400701- variable: defaultSettings.v2DataEngine
702 label: V2 Data Engine
gio16bb6382025-05-21 18:42:40 +0400703 description: "Setting that allows you to enable the V2 Data Engine, which is based on the Storage Performance Development Kit (SPDK). The V2 Data Engine is a preview feature and should not be used in production environments.
704 WARNING:
705 - DO NOT CHANGE THIS SETTING WITH ATTACHED VOLUMES. Longhorn will block this setting update when there are attached volumes.
706 - When the V2 Data Engine is enabled, each instance-manager pod utilizes 1 CPU core. This high CPU usage is attributed to the spdk_tgt process running within each instance-manager pod. The spdk_tgt process is responsible for handling input/output (IO) operations and requires intensive polling. As a result, it consumes 100% of a dedicated CPU core to efficiently manage and process the IO requests, ensuring optimal performance and responsiveness for storage operations."
Giorgi Lekveishvili285ab622023-11-22 13:50:45 +0400707 group: "Longhorn V2 Data Engine (Preview Feature) Settings"
708 type: boolean
709 default: false
gio16bb6382025-05-21 18:42:40 +0400710- variable: defaultSettings.v2DataEngineHugepageLimit
711 label: V2 Data Engine
712 description: "This allows users to configure maximum huge page size (in MiB) for the V2 Data Engine."
713 group: "Longhorn V2 Data Engine (Preview Feature) Settings"
714 type: int
715 default: "2048"
gioc9b92b12025-05-22 08:57:18 +0400716- variable: defaultSettings.v2DataEngineLogLevel
717 label: V2 Data Engine
718 description: "Setting that allows you to configure the log level of the SPDK target daemon (spdk_tgt) of the V2 Data Engine."
Giorgi Lekveishvili285ab622023-11-22 13:50:45 +0400719 group: "Longhorn V2 Data Engine (Preview Feature) Settings"
Giorgi Lekveishvili285ab622023-11-22 13:50:45 +0400720 type: enum
721 options:
gioc9b92b12025-05-22 08:57:18 +0400722 - "Disabled"
723 - "Error"
724 - "Warn"
725 - "Notice"
726 - "Info"
727 - "Debug"
728 default: "Notice"
729- variable: defaultSettings.v2DataEngineLogFlags
730 label: V2 Data Engine
731 description: "Setting that allows you to configure the log flags of the SPDK target daemon (spdk_tgt) of the V2 Data Engine."
732 group: "Longhorn V2 Data Engine (Preview Feature) Settings"
733 type: string
734 default:
735- variable: defaultSettings.autoCleanupSnapshotWhenDeleteBackup
736 label: Auto Cleanup Snapshot When Delete Backup
737 description: "Setting that automatically cleans up the snapshot when the backup is deleted."
738 group: "Longhorn Default Settings"
739 type: boolean
740 default: false
741- variable: defaultSettings.rwxVolumeFastFailover
742 label: RWX Volume Fast Failover (Experimental)
743 description: "Turn on logic to detect and move RWX volumes quickly on node failure."
744 group: "Longhorn Default Settings"
745 type: boolean
746 default: false
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400747- variable: persistence.defaultClass
748 default: "true"
gio16bb6382025-05-21 18:42:40 +0400749 description: "Setting that allows you to specify the default Longhorn StorageClass."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400750 label: Default Storage Class
751 group: "Longhorn Storage Class Settings"
752 required: true
753 type: boolean
754- variable: persistence.reclaimPolicy
755 label: Storage Class Retain Policy
gio16bb6382025-05-21 18:42:40 +0400756 description: "Reclaim policy that provides instructions for handling of a volume after its claim is released. (Options: \"Retain\", \"Delete\")"
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400757 group: "Longhorn Storage Class Settings"
758 required: true
759 type: enum
760 options:
761 - "Delete"
762 - "Retain"
763 default: "Delete"
gioc9b92b12025-05-22 08:57:18 +0400764- variable: persistence.disableRevisionCounter
765 label: Default Storage Class Disable Revision Counter
766 description: "Setting that disables the revision counter and thereby prevents Longhorn from tracking all write operations to a volume. When salvaging a volume, Longhorn uses properties of the volume-head-xxx.img file (the last file size and the last time the file was modified) to select the replica to be used for volume recovery. (Options: \"true\", \"false\")"
767 group: "Longhorn Storage Class Settings"
768 required: true
769 type: enum
770 options:
771 - "true"
772 - "false"
773 default: "true"
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400774- variable: persistence.defaultClassReplicaCount
gio16bb6382025-05-21 18:42:40 +0400775 description: "Replica count of the default Longhorn StorageClass."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400776 label: Default Storage Class Replica Count
777 group: "Longhorn Storage Class Settings"
778 type: int
779 min: 1
780 max: 10
781 default: 3
782- variable: persistence.defaultDataLocality
gio16bb6382025-05-21 18:42:40 +0400783 description: "Data locality of the default Longhorn StorageClass. (Options: \"disabled\", \"best-effort\")"
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400784 label: Default Storage Class Data Locality
785 group: "Longhorn Storage Class Settings"
786 type: enum
787 options:
788 - "disabled"
789 - "best-effort"
790 default: "disabled"
791- variable: persistence.recurringJobSelector.enable
gio16bb6382025-05-21 18:42:40 +0400792 description: "Setting that allows you to enable the recurring job selector for a Longhorn StorageClass."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400793 group: "Longhorn Storage Class Settings"
794 label: Enable Storage Class Recurring Job Selector
795 type: boolean
796 default: false
797 show_subquestion_if: true
798 subquestions:
799 - variable: persistence.recurringJobSelector.jobList
gio16bb6382025-05-21 18:42:40 +0400800 description: 'Recurring job selector for a Longhorn StorageClass. Ensure that quotes are used correctly when specifying job parameters. (Example: `[{"name":"backup", "isGroup":true}]`)'
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400801 label: Storage Class Recurring Job Selector List
802 group: "Longhorn Storage Class Settings"
803 type: string
804 default:
gioc9b92b12025-05-22 08:57:18 +0400805- variable: persistence.defaultDiskSelector.enable
806 description: "Setting that allows you to enable the disk selector for the default Longhorn StorageClass."
807 group: "Longhorn Storage Class Settings"
808 label: Enable Storage Class Disk Selector
809 type: boolean
810 default: false
811 show_subquestion_if: true
812 subquestions:
813 - variable: persistence.defaultDiskSelector.selector
814 label: Storage Class Disk Selector
815 description: 'Disk selector for the default Longhorn StorageClass. Longhorn uses only disks with the specified tags for storing volume data. (Examples: "nvme,sata")'
816 group: "Longhorn Storage Class Settings"
817 type: string
818 default:
Giorgi Lekveishvili285ab622023-11-22 13:50:45 +0400819- variable: persistence.defaultNodeSelector.enable
gio16bb6382025-05-21 18:42:40 +0400820 description: "Setting that allows you to enable the node selector for the default Longhorn StorageClass."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400821 group: "Longhorn Storage Class Settings"
822 label: Enable Storage Class Node Selector
823 type: boolean
824 default: false
825 show_subquestion_if: true
826 subquestions:
Giorgi Lekveishvili285ab622023-11-22 13:50:45 +0400827 - variable: persistence.defaultNodeSelector.selector
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400828 label: Storage Class Node Selector
gio16bb6382025-05-21 18:42:40 +0400829 description: 'Node selector for the default Longhorn StorageClass. Longhorn uses only nodes with the specified tags for storing volume data. (Examples: "storage,fast")'
Giorgi Lekveishvili285ab622023-11-22 13:50:45 +0400830 group: "Longhorn Storage Class Settings"
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400831 type: string
832 default:
833- variable: persistence.backingImage.enable
gio16bb6382025-05-21 18:42:40 +0400834 description: "Setting that allows you to use a backing image in a Longhorn StorageClass."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400835 group: "Longhorn Storage Class Settings"
836 label: Default Storage Class Backing Image
837 type: boolean
838 default: false
839 show_subquestion_if: true
840 subquestions:
841 - variable: persistence.backingImage.name
gio16bb6382025-05-21 18:42:40 +0400842 description: 'Backing image to be used for creating and restoring volumes in a Longhorn StorageClass. When no backing images are available, specify the data source type and parameters that Longhorn can use to create a backing image.'
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400843 label: Storage Class Backing Image Name
844 group: "Longhorn Storage Class Settings"
845 type: string
846 default:
847 - variable: persistence.backingImage.expectedChecksum
gio16bb6382025-05-21 18:42:40 +0400848 description: 'Expected SHA-512 checksum of a backing image used in a Longhorn StorageClass.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400849 WARNING:
850 - If the backing image name is not specified, setting this field is meaningless.
851 - It is not recommended to set this field if the data source type is \"export-from-volume\".'
852 label: Storage Class Backing Image Expected SHA512 Checksum
853 group: "Longhorn Storage Class Settings"
854 type: string
855 default:
856 - variable: persistence.backingImage.dataSourceType
gio16bb6382025-05-21 18:42:40 +0400857 description: 'Data source type of a backing image used in a Longhorn StorageClass. If the backing image exists in the cluster, Longhorn uses this setting to verify the image. If the backing image does not exist, Longhorn creates one using the specified data source type.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400858 WARNING:
859 - If the backing image name is not specified, setting this field is meaningless.
860 - As for backing image creation with data source type \"upload\", it is recommended to do it via UI rather than StorageClass here. Uploading requires file data sending to the Longhorn backend after the object creation, which is complicated if you want to handle it manually.'
861 label: Storage Class Backing Image Data Source Type
862 group: "Longhorn Storage Class Settings"
863 type: enum
864 options:
865 - ""
866 - "download"
867 - "upload"
868 - "export-from-volume"
869 default: ""
870 - variable: persistence.backingImage.dataSourceParameters
gio16bb6382025-05-21 18:42:40 +0400871 description: "Data source parameters of a backing image used in a Longhorn StorageClass. You can specify a JSON string of a map. (Example: `'{\"url\":\"https://backing-image-example.s3-region.amazonaws.com/test-backing-image\"}'`)
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400872 WARNING:
873 - If the backing image name is not specified, setting this field is meaningless.
874 - Be careful of the quotes here."
875 label: Storage Class Backing Image Data Source Parameters
876 group: "Longhorn Storage Class Settings"
877 type: string
878 default:
879- variable: persistence.removeSnapshotsDuringFilesystemTrim
gio16bb6382025-05-21 18:42:40 +0400880 description: "Setting that allows you to enable automatic snapshot removal during filesystem trim for a Longhorn StorageClass. (Options: \"ignored\", \"enabled\", \"disabled\")"
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400881 label: Default Storage Class Remove Snapshots During Filesystem Trim
882 group: "Longhorn Storage Class Settings"
883 type: enum
884 options:
885 - "ignored"
886 - "enabled"
887 - "disabled"
888 default: "ignored"
889- variable: ingress.enabled
890 default: "false"
891 description: "Expose app using Layer 7 Load Balancer - ingress"
892 type: boolean
893 group: "Services and Load Balancing"
894 label: Expose app using Layer 7 Load Balancer
895 show_subquestion_if: true
896 subquestions:
897 - variable: ingress.host
898 default: "xip.io"
gio16bb6382025-05-21 18:42:40 +0400899 description: "Hostname of the Layer 7 load balancer."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400900 type: hostname
901 required: true
902 label: Layer 7 Load Balancer Hostname
903 - variable: ingress.path
904 default: "/"
gio16bb6382025-05-21 18:42:40 +0400905 description: "Default ingress path. You can access the Longhorn UI by following the full ingress path {{host}}+{{path}}."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400906 type: string
907 required: true
908 label: Ingress Path
gioc9b92b12025-05-22 08:57:18 +0400909 - variable: ingress.pathType
910 default: "ImplementationSpecific"
911 description: "Path type for the ingress. (Options: \"ImplementationSpecific\", \"Exact\", \"Prefix\")"
912 type: enum
913 options:
914 - "ImplementationSpecific"
915 - "Exact"
916 - "Prefix"
917 required: true
918 label: Ingress Path Type
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400919- variable: service.ui.type
920 default: "Rancher-Proxy"
gio16bb6382025-05-21 18:42:40 +0400921 description: "Service type for Longhorn UI. (Options: \"ClusterIP\", \"NodePort\", \"LoadBalancer\", \"Rancher-Proxy\")"
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400922 type: enum
923 options:
924 - "ClusterIP"
925 - "NodePort"
926 - "LoadBalancer"
927 - "Rancher-Proxy"
928 label: Longhorn UI Service
929 show_if: "ingress.enabled=false"
930 group: "Services and Load Balancing"
931 show_subquestion_if: "NodePort"
932 subquestions:
933 - variable: service.ui.nodePort
934 default: ""
gio16bb6382025-05-21 18:42:40 +0400935 description: "NodePort port number for Longhorn UI. When unspecified, Longhorn selects a free port between 30000 and 32767."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400936 type: int
937 min: 30000
938 max: 32767
939 show_if: "service.ui.type=NodePort||service.ui.type=LoadBalancer"
940 label: UI Service NodePort number
941- variable: enablePSP
942 default: "false"
gio16bb6382025-05-21 18:42:40 +0400943 description: "Setting that allows you to enable pod security policies (PSPs) that allow privileged Longhorn pods to start. This setting applies only to clusters running Kubernetes 1.25 and earlier, and with the built-in Pod Security admission controller enabled."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400944 label: Pod Security Policy
945 type: boolean
946 group: "Other Settings"
947- variable: global.cattle.windowsCluster.enabled
948 default: "false"
gio16bb6382025-05-21 18:42:40 +0400949 description: "Setting that allows Longhorn to run on a Rancher Windows cluster."
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400950 label: Rancher Windows Cluster
951 type: boolean
952 group: "Other Settings"
Giorgi Lekveishvili285ab622023-11-22 13:50:45 +0400953- variable: networkPolicies.enabled
gio16bb6382025-05-21 18:42:40 +0400954 description: "Setting that allows you to enable network policies that control access to Longhorn pods.
Giorgi Lekveishvili285ab622023-11-22 13:50:45 +0400955 Warning: The Rancher Proxy will not work if this feature is enabled and a custom NetworkPolicy must be added."
956 group: "Other Settings"
957 label: Network Policies
958 default: "false"
959 type: boolean
960 subquestions:
961 - variable: networkPolicies.type
962 label: Network Policies for Ingress
gio16bb6382025-05-21 18:42:40 +0400963 description: "Distribution that determines the policy for allowing access for an ingress. (Options: \"k3s\", \"rke2\", \"rke1\")"
Giorgi Lekveishvili285ab622023-11-22 13:50:45 +0400964 show_if: "networkPolicies.enabled=true&&ingress.enabled=true"
965 type: enum
966 default: "rke2"
967 options:
968 - "rke1"
969 - "rke2"
970 - "k3s"
gio16bb6382025-05-21 18:42:40 +0400971 - variable: defaultSettings.v2DataEngineGuaranteedInstanceManagerCPU
972 label: Guaranteed Instance Manager CPU for V2 Data Engine
973 description: 'Number of millicpus on each node to be reserved for each Instance Manager pod when the V2 Data Engine is enabled. The default value is "1250".
974 WARNING:
gioc9b92b12025-05-22 08:57:18 +0400975 - Specifying a value of 0 disables CPU requests for instance manager pods. You must specify an integer between 1000 and 8000.
gio16bb6382025-05-21 18:42:40 +0400976 - This is a global setting. Modifying the value triggers an automatic restart of the instance manager pods. Do not modify the value while volumes are still attached."
977 group: "Longhorn Default Settings'
978 type: int
979 min: 1000
980 max: 8000
gioc9b92b12025-05-22 08:57:18 +0400981 default: 1250