blob: 2ae660f142904c16f7482183044570cc6799c10d [file] [log] [blame]
gio2539d9e2025-05-22 12:19:30 +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
15 description: "Repository for the Longhorn Manager image."
16 type: string
17 label: Longhorn Manager Image Repository
18 group: "Longhorn Images Settings"
19 - variable: image.longhorn.manager.tag
20 default: v1.7.3
21 description: "Tag for the Longhorn Manager image."
22 type: string
23 label: Longhorn Manager Image Tag
24 group: "Longhorn Images Settings"
25 - variable: image.longhorn.engine.repository
26 default: longhornio/longhorn-engine
27 description: "Repository for the Longhorn Engine image."
28 type: string
29 label: Longhorn Engine Image Repository
30 group: "Longhorn Images Settings"
31 - variable: image.longhorn.engine.tag
32 default: v1.7.3
33 description: "Tag for the Longhorn Engine image."
34 type: string
35 label: Longhorn Engine Image Tag
36 group: "Longhorn Images Settings"
37 - variable: image.longhorn.ui.repository
38 default: longhornio/longhorn-ui
39 description: "Repository for the Longhorn UI image."
40 type: string
41 label: Longhorn UI Image Repository
42 group: "Longhorn Images Settings"
43 - variable: image.longhorn.ui.tag
44 default: v1.7.3
45 description: "Tag for the Longhorn UI image."
46 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
51 description: "Repository for the Longhorn Instance Manager image."
52 type: string
53 label: Longhorn Instance Manager Image Repository
54 group: "Longhorn Images Settings"
55 - variable: image.longhorn.instanceManager.tag
56 default: v1.7.3
57 description: "Tag for the Longhorn Instance Manager image."
58 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
63 description: "Repository for the Longhorn Share Manager image."
64 type: string
65 label: Longhorn Share Manager Image Repository
66 group: "Longhorn Images Settings"
67 - variable: image.longhorn.shareManager.tag
68 default: v1.7.3
69 description: "Tag for the Longhorn Share Manager image."
70 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
75 description: "Repository for the Backing Image Manager image. When unspecified, Longhorn uses the default value."
76 type: string
77 label: Longhorn Backing Image Manager Image Repository
78 group: "Longhorn Images Settings"
79 - variable: image.longhorn.backingImageManager.tag
80 default: v1.7.3
81 description: "Tag for the Backing Image Manager image. When unspecified, Longhorn uses the default value."
82 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
87 description: "Repository for the Longhorn Support Bundle Manager image."
88 type: string
89 label: Longhorn Support Bundle Kit Image Repository
90 group: "Longhorn Images Settings"
91 - variable: image.longhorn.supportBundleKit.tag
92 default: v0.0.51
93 description: "Tag for the Longhorn Support Bundle Manager image."
94 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
99 description: "Repository for the CSI attacher image. When unspecified, Longhorn uses the default value."
100 type: string
101 label: Longhorn CSI Attacher Image Repository
102 group: "Longhorn CSI Driver Images"
103 - variable: image.csi.attacher.tag
104 default: v4.8.0
105 description: "Tag for the CSI attacher image. When unspecified, Longhorn uses the default value."
106 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
111 description: "Repository for the CSI Provisioner image. When unspecified, Longhorn uses the default value."
112 type: string
113 label: Longhorn CSI Provisioner Image Repository
114 group: "Longhorn CSI Driver Images"
115 - variable: image.csi.provisioner.tag
116 default: v4.0.1-20250204
117 description: "Tag for the CSI Provisioner image. When unspecified, Longhorn uses the default value."
118 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
123 description: "Repository for the CSI Node Driver Registrar image. When unspecified, Longhorn uses the default value."
124 type: string
125 label: Longhorn CSI Node Driver Registrar Image Repository
126 group: "Longhorn CSI Driver Images"
127 - variable: image.csi.nodeDriverRegistrar.tag
128 default: v2.13.0
129 description: "Tag for the CSI Node Driver Registrar image. When unspecified, Longhorn uses the default value."
130 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
135 description: "Repository for the CSI Resizer image. When unspecified, Longhorn uses the default value."
136 type: string
137 label: Longhorn CSI Driver Resizer Image Repository
138 group: "Longhorn CSI Driver Images"
139 - variable: image.csi.resizer.tag
140 default: v1.13.1
141 description: "Tag for the CSI Resizer image. When unspecified, Longhorn uses the default value."
142 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
147 description: "Repository for the CSI Snapshotter image. When unspecified, Longhorn uses the default value."
148 type: string
149 label: Longhorn CSI Driver Snapshotter Image Repository
150 group: "Longhorn CSI Driver Images"
151 - variable: image.csi.snapshotter.tag
152 default: v7.0.2-20250204
153 description: "Tag for the CSI Snapshotter image. When unspecified, Longhorn uses the default value."
154 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
159 description: "Repository for the CSI liveness probe image. When unspecified, Longhorn uses the default value."
160 type: string
161 label: Longhorn CSI Liveness Probe Image Repository
162 group: "Longhorn CSI Driver Images"
163 - variable: image.csi.livenessProbe.tag
164 default: v2.15.0
165 description: "Tag for the CSI liveness probe image. When unspecified, Longhorn uses the default value."
166 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
171 description: "URL of a private registry. When unspecified, Longhorn uses the default system registry."
172 group: "Private Registry Settings"
173 type: string
174 default: ""
175- variable: privateRegistry.registrySecret
176 label: Private registry secret name
177 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."
178 group: "Private Registry Settings"
179 type: string
180 default: ""
181- variable: privateRegistry.createSecret
182 default: "true"
183 description: "Setting that allows you to create a private registry secret."
184 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
191 description: "User account used for authenticating with a private registry."
192 type: string
193 default: ""
194 - variable: privateRegistry.registryPasswd
195 label: Private registry password
196 description: "Password for authenticating with a private registry."
197 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:
209 description: "kubelet root directory. When unspecified, Longhorn uses the default value."
210 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
218 description: "Replica count of the CSI Attacher. When unspecified, Longhorn uses the default value (\"3\")."
219 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
226 description: "Replica count of the CSI Provisioner. When unspecified, Longhorn uses the default value (\"3\")."
227 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
234 description: "Replica count of the CSI Resizer. When unspecified, Longhorn uses the default value (\"3\")."
235 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
242 description: "Replica count of the CSI Snapshotter. When unspecified, Longhorn uses the default value (\"3\")."
243 label: Longhorn CSI Snapshotter replica count
244 group: "Longhorn CSI Driver Settings"
245 - variable: defaultSettings.backupTarget
246 label: Backup Target
247 description: "Endpoint used to access the backupstore. (Options: \"NFS\", \"CIFS\", \"AWS\", \"GCP\", \"AZURE\")"
248 group: "Longhorn Default Settings"
249 type: string
250 default:
251 - variable: defaultSettings.backupTargetCredentialSecret
252 label: Backup Target Credential Secret
253 description: "Name of the Kubernetes secret associated with the backup target."
254 group: "Longhorn Default Settings"
255 type: string
256 default:
257 - variable: defaultSettings.allowRecurringJobWhileVolumeDetached
258 label: Allow Recurring Job While Volume Is Detached
259 description: 'Setting that allows Longhorn to automatically attach a volume and create snapshots or backups when recurring jobs are run.'
260 group: "Longhorn Default Settings"
261 type: boolean
262 default: "false"
263 - 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
271 - variable: defaultSettings.createDefaultDiskLabeledNodes
272 label: Create Default Disk on Labeled Nodes
273 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.'
274 group: "Longhorn Default Settings"
275 type: boolean
276 default: "false"
277 - variable: defaultSettings.defaultDataPath
278 label: Default Data Path
279 description: 'Default path for storing data on a host. The default value is "/var/lib/longhorn/".'
280 group: "Longhorn Default Settings"
281 type: string
282 default: "/var/lib/longhorn/"
283 - variable: defaultSettings.defaultDataLocality
284 label: Default Data Locality
285 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.'
286 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
294 description: 'Allow scheduling on nodes with existing healthy replicas of the same volume. By default, false.'
295 group: "Longhorn Default Settings"
296 type: boolean
297 default: "false"
298 - variable: defaultSettings.replicaAutoBalance
299 label: Replica Auto Balance
300 description: 'Enable this setting automatically re-balances replicas when discovered an available node.'
301 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
310 description: "Percentage of storage that can be allocated relative to hard drive capacity. The default value is 100."
311 group: "Longhorn Default Settings"
312 type: int
313 min: 0
314 default: 100
315 - variable: defaultSettings.storageMinimalAvailablePercentage
316 label: Storage Minimal Available Percentage
317 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."
318 group: "Longhorn Default Settings"
319 type: int
320 min: 0
321 max: 100
322 default: 25
323 - 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
331 - variable: defaultSettings.upgradeChecker
332 label: Enable Upgrade Checker
333 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.'
334 group: "Longhorn Default Settings"
335 type: boolean
336 default: "true"
337 - variable: defaultSettings.defaultReplicaCount
338 label: Default Replica Count
339 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\"."
340 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
347 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\"."
348 group: "Longhorn Default Settings"
349 type: string
350 default: "longhorn-static"
351 - variable: defaultSettings.backupstorePollInterval
352 label: Backupstore Poll Interval
353 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."
354 group: "Longhorn Default Settings"
355 type: int
356 min: 0
357 default: 300
358 - variable: defaultSettings.failedBackupTTL
359 label: Failed Backup Time to Live
360 description: "Number of minutes that Longhorn keeps a failed backup resource. When the value is \"0\", automatic deletion is disabled."
361 group: "Longhorn Default Settings"
362 type: int
363 min: 0
364 default: 1440
365 - 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
372 - variable: defaultSettings.restoreVolumeRecurringJobs
373 label: Restore Volume Recurring Jobs
374 description: "Restore recurring jobs from the backup volume on the backup target and create recurring jobs if not exist during a backup restoration."
375 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
387 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.'
388 group: "Longhorn Default Settings"
389 type: int
390 min: 0
391 default: 1
392 - 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
398 - variable: defaultSettings.supportBundleFailedHistoryLimit
399 label: SupportBundle Failed History Limit
400 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."
401 group: "Longhorn Default Settings"
402 type: int
403 min: 0
404 default: 1
405 - variable: defaultSettings.autoSalvage
406 label: Automatic salvage
407 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."
408 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
413 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.'
414 group: "Longhorn Default Settings"
415 type: boolean
416 default: "true"
417 - variable: defaultSettings.disableSchedulingOnCordonedNode
418 label: Disable Scheduling On Cordoned Node
419 description: "Setting that prevents Longhorn Manager from scheduling replicas on a cordoned Kubernetes node. This setting is enabled by default."
420 group: "Longhorn Default Settings"
421 type: boolean
422 default: "true"
423 - variable: defaultSettings.replicaZoneSoftAntiAffinity
424 label: Replica Zone Level Soft Anti-Affinity
425 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."
444 group: "Longhorn Default Settings"
445 type: boolean
446 default: "true"
447 - variable: defaultSettings.nodeDownPodDeletionPolicy
448 label: Pod Deletion Policy When Node is Down
449 description: "Policy that defines the action Longhorn takes when a volume is stuck with a StatefulSet or Deployment pod on a node that failed."
450 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"
458 - variable: defaultSettings.nodeDrainPolicy
459 label: Node Drain Policy
460 description: "Policy that defines the action Longhorn takes when a node with the last healthy replica of a volume is drained."
461 group: "Longhorn Default Settings"
462 type: enum
463 options:
464 - "block-for-eviction"
465 - "block-for-eviction-if-contains-last-replica"
466 - "block-if-contains-last-replica"
467 - "allow-if-replica-is-stopped"
468 - "always-allow"
469 default: "block-if-contains-last-replica"
470 - 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"
482 - variable: defaultSettings.replicaReplenishmentWaitInterval
483 label: Replica Replenishment Wait Interval
484 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."
485 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
491 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."
496 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
502 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."
503 group: "Longhorn Default Settings"
504 type: int
505 min: 0
506 default: 5
507 - variable: defaultSettings.disableRevisionCounter
508 label: Disable Revision Counter
509 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."
510 group: "Longhorn Default Settings"
511 type: boolean
512 default: "true"
513 - variable: defaultSettings.systemManagedPodsImagePullPolicy
514 label: System Managed Pod Image Pull Policy
515 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."
516 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
525 description: "Setting that allows you to create and attach a volume without having all replicas scheduled at the time of creation."
526 group: "Longhorn Default Settings"
527 type: boolean
528 default: "true"
529 - variable: defaultSettings.autoCleanupSystemGeneratedSnapshot
530 label: Automatically Cleanup System Generated Snapshot
531 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."
538 group: "Longhorn Default Settings"
539 type: boolean
540 default: "true"
541 - variable: defaultSettings.concurrentAutomaticEngineUpgradePerNodeLimit
542 label: Concurrent Automatic Engine Upgrade Per Node Limit
543 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."
544 group: "Longhorn Default Settings"
545 type: int
546 min: 0
547 default: 0
548 - variable: defaultSettings.backingImageCleanupWaitInterval
549 label: Backing Image Cleanup Wait Interval
550 description: "Number of minutes that Longhorn waits before cleaning up the backing image file when no replicas in the disk are using it."
551 group: "Longhorn Default Settings"
552 type: int
553 min: 0
554 default: 60
555 - variable: defaultSettings.backingImageRecoveryWaitInterval
556 label: Backing Image Recovery Wait Interval
557 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\"."
558 group: "Longhorn Default Settings"
559 type: int
560 min: 0
561 default: 300
562 - variable: defaultSettings.guaranteedInstanceManagerCPU
563 label: Guaranteed Instance Manager CPU
564 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\".
565 WARNING:
566 - 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.
568 - 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.
569 - 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."
571 group: "Longhorn Default Settings"
572 type: int
573 min: 0
574 max: 40
575 default: 12
576 - variable: defaultSettings.logLevel
577 label: Log Level
578 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")'
579 group: "Longhorn Default Settings"
580 type: string
581 default: "Info"
582 - 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"
588 - 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"
593- variable: defaultSettings.kubernetesClusterAutoscalerEnabled
594 label: Kubernetes Cluster Autoscaler Enabled (Experimental)
595 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."
598 group: "Longhorn Default Settings"
599 type: boolean
600 default: false
601- variable: defaultSettings.orphanAutoDeletion
602 label: Orphaned Data Cleanup
603 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."
604 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.
610 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."
612 group: "Longhorn Default Settings"
613 type: string
614 default:
615- variable: defaultSettings.deletingConfirmationFlag
616 label: Deleting Confirmation Flag
617 description: "Flag that prevents accidental uninstallation of Longhorn."
618 group: "Longhorn Default Settings"
619 type: boolean
620 default: "false"
621- variable: defaultSettings.engineReplicaTimeout
622 label: Timeout between Engine and Replica
623 description: "Timeout between the Longhorn Engine and replicas. Specify a value between \"8\" and \"30\" seconds. The default value is \"8\"."
624 group: "Longhorn Default Settings"
625 type: int
626 default: "8"
627- variable: defaultSettings.snapshotDataIntegrity
628 label: Snapshot Data Integrity
629 description: "This setting allows users to enable or disable snapshot hashing and data integrity checking."
630 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
641 description: "Unix-cron string format. The setting specifies when Longhorn checks the data integrity of snapshot disk files."
642 group: "Longhorn Default Settings"
643 type: string
644 default: "0 0 */7 * *"
645- variable: defaultSettings.removeSnapshotsDuringFilesystemTrim
646 label: Remove Snapshots During Filesystem Trim
647 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."
648 group: "Longhorn Default Settings"
649 type: boolean
650 default: "false"
651- variable: defaultSettings.fastReplicaRebuildEnabled
652 label: Fast Replica Rebuild Enabled
653 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\"."
654 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"
663- 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"
669- variable: defaultSettings.backupCompressionMethod
670 label: Backup Compression Method
671 description: "Setting that allows you to specify a backup compression method."
672 group: "Longhorn Default Settings"
673 type: string
674 default: "lz4"
675- variable: defaultSettings.backupConcurrentLimit
676 label: Backup Concurrent Limit Per Backup
677 description: "Maximum number of worker threads that can concurrently run for each backup."
678 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
689- 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
701- variable: defaultSettings.v2DataEngine
702 label: V2 Data Engine
703 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."
707 group: "Longhorn V2 Data Engine (Preview Feature) Settings"
708 type: boolean
709 default: false
710- 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"
716- 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."
719 group: "Longhorn V2 Data Engine (Preview Feature) Settings"
720 type: enum
721 options:
722 - "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
747- variable: persistence.defaultClass
748 default: "true"
749 description: "Setting that allows you to specify the default Longhorn StorageClass."
750 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
756 description: "Reclaim policy that provides instructions for handling of a volume after its claim is released. (Options: \"Retain\", \"Delete\")"
757 group: "Longhorn Storage Class Settings"
758 required: true
759 type: enum
760 options:
761 - "Delete"
762 - "Retain"
763 default: "Delete"
764- 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"
774- variable: persistence.defaultClassReplicaCount
775 description: "Replica count of the default Longhorn StorageClass."
776 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
783 description: "Data locality of the default Longhorn StorageClass. (Options: \"disabled\", \"best-effort\")"
784 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
792 description: "Setting that allows you to enable the recurring job selector for a Longhorn StorageClass."
793 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
800 description: 'Recurring job selector for a Longhorn StorageClass. Ensure that quotes are used correctly when specifying job parameters. (Example: `[{"name":"backup", "isGroup":true}]`)'
801 label: Storage Class Recurring Job Selector List
802 group: "Longhorn Storage Class Settings"
803 type: string
804 default:
805- 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:
819- variable: persistence.defaultNodeSelector.enable
820 description: "Setting that allows you to enable the node selector for the default Longhorn StorageClass."
821 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:
827 - variable: persistence.defaultNodeSelector.selector
828 label: Storage Class Node Selector
829 description: 'Node selector for the default Longhorn StorageClass. Longhorn uses only nodes with the specified tags for storing volume data. (Examples: "storage,fast")'
830 group: "Longhorn Storage Class Settings"
831 type: string
832 default:
833- variable: persistence.backingImage.enable
834 description: "Setting that allows you to use a backing image in a Longhorn StorageClass."
835 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
842 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.'
843 label: Storage Class Backing Image Name
844 group: "Longhorn Storage Class Settings"
845 type: string
846 default:
847 - variable: persistence.backingImage.expectedChecksum
848 description: 'Expected SHA-512 checksum of a backing image used in a Longhorn StorageClass.
849 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
857 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.
858 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
871 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\"}'`)
872 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
880 description: "Setting that allows you to enable automatic snapshot removal during filesystem trim for a Longhorn StorageClass. (Options: \"ignored\", \"enabled\", \"disabled\")"
881 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"
899 description: "Hostname of the Layer 7 load balancer."
900 type: hostname
901 required: true
902 label: Layer 7 Load Balancer Hostname
903 - variable: ingress.path
904 default: "/"
905 description: "Default ingress path. You can access the Longhorn UI by following the full ingress path {{host}}+{{path}}."
906 type: string
907 required: true
908 label: Ingress Path
909 - 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
919- variable: service.ui.type
920 default: "Rancher-Proxy"
921 description: "Service type for Longhorn UI. (Options: \"ClusterIP\", \"NodePort\", \"LoadBalancer\", \"Rancher-Proxy\")"
922 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: ""
935 description: "NodePort port number for Longhorn UI. When unspecified, Longhorn selects a free port between 30000 and 32767."
936 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"
943 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."
944 label: Pod Security Policy
945 type: boolean
946 group: "Other Settings"
947- variable: global.cattle.windowsCluster.enabled
948 default: "false"
949 description: "Setting that allows Longhorn to run on a Rancher Windows cluster."
950 label: Rancher Windows Cluster
951 type: boolean
952 group: "Other Settings"
953- variable: networkPolicies.enabled
954 description: "Setting that allows you to enable network policies that control access to Longhorn pods.
955 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
963 description: "Distribution that determines the policy for allowing access for an ingress. (Options: \"k3s\", \"rke2\", \"rke1\")"
964 show_if: "networkPolicies.enabled=true&&ingress.enabled=true"
965 type: enum
966 default: "rke2"
967 options:
968 - "rke1"
969 - "rke2"
970 - "k3s"
971 - 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:
975 - Specifying a value of 0 disables CPU requests for instance manager pods. You must specify an integer between 1000 and 8000.
976 - 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
981 default: 1250