blob: b4ae9def318756a73b8bf7204ba99eae427f517b [file] [log] [blame]
Giorgi Lekveishvili285ab622023-11-22 13:50:45 +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: "Specify Longhorn Manager Image Repository"
16 type: string
17 label: Longhorn Manager Image Repository
18 group: "Longhorn Images Settings"
19 - variable: image.longhorn.manager.tag
20 default: v1.4.1
21 description: "Specify Longhorn Manager Image Tag"
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: "Specify Longhorn Engine Image Repository"
28 type: string
29 label: Longhorn Engine Image Repository
30 group: "Longhorn Images Settings"
31 - variable: image.longhorn.engine.tag
32 default: v1.4.1
33 description: "Specify Longhorn Engine Image Tag"
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: "Specify Longhorn UI Image Repository"
40 type: string
41 label: Longhorn UI Image Repository
42 group: "Longhorn Images Settings"
43 - variable: image.longhorn.ui.tag
44 default: v1.4.1
45 description: "Specify Longhorn UI Image Tag"
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: "Specify Longhorn Instance Manager Image Repository"
52 type: string
53 label: Longhorn Instance Manager Image Repository
54 group: "Longhorn Images Settings"
55 - variable: image.longhorn.instanceManager.tag
56 default: v1.4.1
57 description: "Specify Longhorn Instance Manager Image Tag"
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: "Specify Longhorn Share Manager Image Repository"
64 type: string
65 label: Longhorn Share Manager Image Repository
66 group: "Longhorn Images Settings"
67 - variable: image.longhorn.shareManager.tag
68 default: v1.4.1
69 description: "Specify Longhorn Share Manager Image Tag"
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: "Specify Longhorn Backing Image Manager Image Repository"
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.4.1
81 description: "Specify Longhorn Backing Image Manager Image Tag"
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: "Specify Longhorn Support Bundle Manager Image Repository"
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.17
93 description: "Specify Longhorn Support Bundle Manager Image Tag"
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: "Specify CSI attacher image repository. Leave blank to autodetect."
100 type: string
101 label: Longhorn CSI Attacher Image Repository
102 group: "Longhorn CSI Driver Images"
103 - variable: image.csi.attacher.tag
104 default: v3.4.0
105 description: "Specify CSI attacher image tag. Leave blank to autodetect."
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: "Specify CSI provisioner image repository. Leave blank to autodetect."
112 type: string
113 label: Longhorn CSI Provisioner Image Repository
114 group: "Longhorn CSI Driver Images"
115 - variable: image.csi.provisioner.tag
116 default: v2.1.2
117 description: "Specify CSI provisioner image tag. Leave blank to autodetect."
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: "Specify CSI Node Driver Registrar image repository. Leave blank to autodetect."
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.5.0
129 description: "Specify CSI Node Driver Registrar image tag. Leave blank to autodetect."
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: "Specify CSI Driver Resizer image repository. Leave blank to autodetect."
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.3.0
141 description: "Specify CSI Driver Resizer image tag. Leave blank to autodetect."
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: "Specify CSI Driver Snapshotter image repository. Leave blank to autodetect."
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: v5.0.1
153 description: "Specify CSI Driver Snapshotter image tag. Leave blank to autodetect."
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: "Specify CSI liveness probe image repository. Leave blank to autodetect."
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.8.0
165 description: "Specify CSI liveness probe image tag. Leave blank to autodetect."
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 private registry. Leave blank to apply system default registry."
172 group: "Private Registry Settings"
173 type: string
174 default: ""
175- variable: privateRegistry.registrySecret
176 label: Private registry secret name
177 description: "If create a new private registry secret is true, create a Kubernetes secret with this name; else use the existing secret of this name. Use it to pull images from your private registry."
178 group: "Private Registry Settings"
179 type: string
180 default: ""
181- variable: privateRegistry.createSecret
182 default: "true"
183 description: "Create a new 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 used to authenticate to private registry."
192 type: string
193 default: ""
194 - variable: privateRegistry.registryPasswd
195 label: Private registry password
196 description: "Password used to authenticate to 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: "Specify kubelet root-dir. Leave blank to autodetect."
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: "Specify replica count of CSI Attacher. By default 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: "Specify replica count of CSI Provisioner. By default 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: "Specify replica count of CSI Resizer. By default 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: "Specify replica count of CSI Snapshotter. By default 3."
243 label: Longhorn CSI Snapshotter replica count
244 group: "Longhorn CSI Driver Settings"
245 - variable: defaultSettings.backupTarget
246 label: Backup Target
247 description: "The endpoint used to access the backupstore. NFS and S3 are supported."
248 group: "Longhorn Default Settings"
249 type: string
250 default:
251 - variable: defaultSettings.backupTargetCredentialSecret
252 label: Backup Target Credential Secret
253 description: "The 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: 'If this setting is enabled, Longhorn will automatically attaches the volume and takes snapshot/backup when it is the time to do recurring snapshot/backup.
260Note that the volume is not ready for workload during the period when the volume was automatically attached. Workload will have to wait until the recurring job finishes.'
261 group: "Longhorn Default Settings"
262 type: boolean
263 default: "false"
264 - variable: defaultSettings.createDefaultDiskLabeledNodes
265 label: Create Default Disk on Labeled Nodes
266 description: 'Create default Disk automatically only on Nodes with the label "node.longhorn.io/create-default-disk=true" if no other disks exist. If disabled, the default disk will be created on all new nodes when each node is first added.'
267 group: "Longhorn Default Settings"
268 type: boolean
269 default: "false"
270 - variable: defaultSettings.defaultDataPath
271 label: Default Data Path
272 description: 'Default path to use for storing data on a host. By default "/var/lib/longhorn/"'
273 group: "Longhorn Default Settings"
274 type: string
275 default: "/var/lib/longhorn/"
276 - variable: defaultSettings.defaultDataLocality
277 label: Default Data Locality
278 description: 'We say a Longhorn volume has data locality if there is a local replica of the volume on the same node as the pod which is using the volume.
279This setting specifies the default data locality when a volume is created from the Longhorn UI. For Kubernetes configuration, update the `dataLocality` in the StorageClass
280The available modes are:
281- **disabled**. This is the default option. There may or may not be a replica on the same node as the attached volume (workload)
282- **best-effort**. This option instructs Longhorn to try to keep a replica on the same node as the attached volume (workload). Longhorn will not stop the volume, even if it cannot keep a replica local to the attached volume (workload) due to environment limitation, e.g. not enough disk space, incompatible disk tags, etc.'
283 group: "Longhorn Default Settings"
284 type: enum
285 options:
286 - "disabled"
287 - "best-effort"
288 default: "disabled"
289 - variable: defaultSettings.replicaSoftAntiAffinity
290 label: Replica Node Level Soft Anti-Affinity
291 description: 'Allow scheduling on nodes with existing healthy replicas of the same volume. By default false.'
292 group: "Longhorn Default Settings"
293 type: boolean
294 default: "false"
295 - variable: defaultSettings.replicaAutoBalance
296 label: Replica Auto Balance
297 description: 'Enable this setting automatically rebalances replicas when discovered an available node.
298The available global options are:
299- **disabled**. This is the default option. No replica auto-balance will be done.
300- **least-effort**. This option instructs Longhorn to balance replicas for minimal redundancy.
301- **best-effort**. This option instructs Longhorn to balance replicas for even redundancy.
302Longhorn also support individual volume setting. The setting can be specified in volume.spec.replicaAutoBalance, this overrules the global setting.
303The available volume spec options are:
304- **ignored**. This is the default option that instructs Longhorn to inherit from the global setting.
305- **disabled**. This option instructs Longhorn no replica auto-balance should be done.
306- **least-effort**. This option instructs Longhorn to balance replicas for minimal redundancy.
307- **best-effort**. This option instructs Longhorn to balance replicas for even redundancy.'
308 group: "Longhorn Default Settings"
309 type: enum
310 options:
311 - "disabled"
312 - "least-effort"
313 - "best-effort"
314 default: "disabled"
315 - variable: defaultSettings.storageOverProvisioningPercentage
316 label: Storage Over Provisioning Percentage
317 description: "The over-provisioning percentage defines how much storage can be allocated relative to the hard drive's capacity. By default 200."
318 group: "Longhorn Default Settings"
319 type: int
320 min: 0
321 default: 200
322 - variable: defaultSettings.storageMinimalAvailablePercentage
323 label: Storage Minimal Available Percentage
324 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."
325 group: "Longhorn Default Settings"
326 type: int
327 min: 0
328 max: 100
329 default: 25
330 - variable: defaultSettings.upgradeChecker
331 label: Enable Upgrade Checker
332 description: 'Upgrade Checker will check for new Longhorn version periodically. When there is a new version available, a notification will appear in the UI. By default true.'
333 group: "Longhorn Default Settings"
334 type: boolean
335 default: "true"
336 - variable: defaultSettings.defaultReplicaCount
337 label: Default Replica Count
338 description: "The default number of replicas when a volume is created from the Longhorn UI. For Kubernetes configuration, update the `numberOfReplicas` in the StorageClass. By default 3."
339 group: "Longhorn Default Settings"
340 type: int
341 min: 1
342 max: 20
343 default: 3
344 - variable: defaultSettings.defaultLonghornStaticStorageClass
345 label: Default Longhorn Static StorageClass Name
346 description: "The 'storageClassName' is given to PVs and PVCs that are created for an existing Longhorn volume. The StorageClass name 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. By default 'longhorn-static'."
347 group: "Longhorn Default Settings"
348 type: string
349 default: "longhorn-static"
350 - variable: defaultSettings.backupstorePollInterval
351 label: Backupstore Poll Interval
352 description: "In seconds. The backupstore poll interval determines how often Longhorn checks the backupstore for new backups. Set to 0 to disable the polling. By default 300."
353 group: "Longhorn Default Settings"
354 type: int
355 min: 0
356 default: 300
357 - variable: defaultSettings.failedBackupTTL
358 label: Failed Backup Time to Live
359 description: "In minutes. This setting determines how long Longhorn will keep the backup resource that was failed. Set to 0 to disable the auto-deletion.
360Failed backups will be checked and cleaned up during backupstore polling which is controlled by **Backupstore Poll Interval** setting.
361Hence this value determines the minimal wait interval of the cleanup. And the actual cleanup interval is multiple of **Backupstore Poll Interval**.
362Disabling **Backupstore Poll Interval** also means to disable failed backup auto-deletion."
363 group: "Longhorn Default Settings"
364 type: int
365 min: 0
366 default: 1440
367 - variable: defaultSettings.restoreVolumeRecurringJobs
368 label: Restore Volume Recurring Jobs
369 description: "Restore recurring jobs from the backup volume on the backup target and create recurring jobs if not exist during a backup restoration.
370Longhorn also supports individual volume setting. The setting can be specified on Backup page when making a backup restoration, this overrules the global setting.
371The available volume setting options are:
372- **ignored**. This is the default option that instructs Longhorn to inherit from the global setting.
373- **enabled**. This option instructs Longhorn to restore recurring jobs/groups from the backup target forcibly.
374- **disabled**. This option instructs Longhorn no restoring recurring jobs/groups should be done."
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: "This setting specifies how many failed backup or snapshot job histories should be retained. History will not be retained if the value is 0."
388 group: "Longhorn Default Settings"
389 type: int
390 min: 0
391 default: 1
392 - variable: defaultSettings.supportBundleFailedHistoryLimit
393 label: SupportBundle Failed History Limit
394 description: "This setting specifies how many failed support bundles can exist in the cluster.
395The retained failed support bundle is for analysis purposes and needs to clean up manually.
396Set this value to **0** to have Longhorn automatically purge all failed support bundles."
397 group: "Longhorn Default Settings"
398 type: int
399 min: 0
400 default: 1
401 - variable: defaultSettings.autoSalvage
402 label: Automatic salvage
403 description: "If enabled, volumes will be automatically salvaged when all the replicas become faulty e.g. due to network disconnection. Longhorn will try to figure out which replica(s) are usable, then use them for the volume. By default true."
404 group: "Longhorn Default Settings"
405 type: boolean
406 default: "true"
407 - variable: defaultSettings.autoDeletePodWhenVolumeDetachedUnexpectedly
408 label: Automatically Delete Workload Pod when The Volume Is Detached Unexpectedly
409 description: 'If enabled, Longhorn will automatically delete the workload pod that is managed by a controller (e.g. deployment, statefulset, daemonset, etc...) when Longhorn volume is detached unexpectedly (e.g. during Kubernetes upgrade, Docker reboot, or network disconnect). By deleting the pod, its controller restarts the pod and Kubernetes handles volume reattachment and remount.
410If disabled, Longhorn will not delete the workload pod that is managed by a controller. You will have to manually restart the pod to reattach and remount the volume.
411**Note:** This setting does not apply to the workload pods that do not have a controller. Longhorn never deletes them.'
412 group: "Longhorn Default Settings"
413 type: boolean
414 default: "true"
415 - variable: defaultSettings.disableSchedulingOnCordonedNode
416 label: Disable Scheduling On Cordoned Node
417 description: "Disable Longhorn manager to schedule replica on Kubernetes cordoned node. By default true."
418 group: "Longhorn Default Settings"
419 type: boolean
420 default: "true"
421 - variable: defaultSettings.replicaZoneSoftAntiAffinity
422 label: Replica Zone Level Soft Anti-Affinity
423 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."
424 group: "Longhorn Default Settings"
425 type: boolean
426 default: "true"
427 - variable: defaultSettings.nodeDownPodDeletionPolicy
428 label: Pod Deletion Policy When Node is Down
429 description: "Defines the Longhorn action when a Volume is stuck with a StatefulSet/Deployment Pod on a node that is down.
430- **do-nothing** is the default Kubernetes behavior of never force deleting StatefulSet/Deployment terminating pods. Since the pod on the node that is down isn't removed, Longhorn volumes are stuck on nodes that are down.
431- **delete-statefulset-pod** Longhorn will force delete StatefulSet terminating pods on nodes that are down to release Longhorn volumes so that Kubernetes can spin up replacement pods.
432- **delete-deployment-pod** Longhorn will force delete Deployment terminating pods on nodes that are down to release Longhorn volumes so that Kubernetes can spin up replacement pods.
433- **delete-both-statefulset-and-deployment-pod** Longhorn will force delete StatefulSet/Deployment terminating pods on nodes that are down to release Longhorn volumes so that Kubernetes can spin up replacement pods."
434 group: "Longhorn Default Settings"
435 type: enum
436 options:
437 - "do-nothing"
438 - "delete-statefulset-pod"
439 - "delete-deployment-pod"
440 - "delete-both-statefulset-and-deployment-pod"
441 default: "do-nothing"
442 - variable: defaultSettings.allowNodeDrainWithLastHealthyReplica
443 label: Allow Node Drain with the Last Healthy Replica
444 description: "By default, Longhorn will block `kubectl drain` action on a node if the node contains the last healthy replica of a volume.
445If this setting is enabled, Longhorn will **not** block `kubectl drain` action on a node even if the node contains the last healthy replica of a volume."
446 group: "Longhorn Default Settings"
447 type: boolean
448 default: "false"
449 - variable: defaultSettings.mkfsExt4Parameters
450 label: Custom mkfs.ext4 parameters
451 description: "Allows setting additional filesystem creation parameters for ext4. For older host kernels it might be necessary to disable the optional ext4 metadata_csum feature by specifying `-O ^64bit,^metadata_csum`."
452 group: "Longhorn Default Settings"
453 type: string
454 - variable: defaultSettings.disableReplicaRebuild
455 label: Disable Replica Rebuild
456 description: "This setting disable replica rebuild cross the whole cluster, eviction and data locality feature won't work if this setting is true. But doesn't have any impact to any current replica rebuild and restore disaster recovery volume."
457 group: "Longhorn Default Settings"
458 type: boolean
459 default: "false"
460 - variable: defaultSettings.replicaReplenishmentWaitInterval
461 label: Replica Replenishment Wait Interval
462 description: "In seconds. The interval determines how long Longhorn will wait at least in order to reuse the existing data on a failed replica rather than directly creating a new replica for a degraded volume.
463Warning: This option works only when there is a failed replica in the volume. And this option may block the rebuilding for a while in the case."
464 group: "Longhorn Default Settings"
465 type: int
466 min: 0
467 default: 600
468 - variable: defaultSettings.concurrentReplicaRebuildPerNodeLimit
469 label: Concurrent Replica Rebuild Per Node Limit
470 description: "This setting controls how many replicas on a node can be rebuilt simultaneously.
471Typically, Longhorn can block the replica starting once the current rebuilding count on a node exceeds the limit. But when the value is 0, it means disabling the replica rebuilding.
472WARNING:
473- The old setting \"Disable Replica Rebuild\" is replaced by this setting.
474- Different from relying on replica starting delay to limit the concurrent rebuilding, if the rebuilding is disabled, replica object replenishment will be directly skipped.
475- 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."
476 group: "Longhorn Default Settings"
477 type: int
478 min: 0
479 default: 5
480 - variable: defaultSettings.concurrentVolumeBackupRestorePerNodeLimit
481 label: Concurrent Volume Backup Restore Per Node Limit
482 description: "This setting controls how many volumes on a node can restore the backup concurrently.
483Longhorn blocks the backup restore once the restoring volume count exceeds the limit.
484Set the value to **0** to disable backup restore."
485 group: "Longhorn Default Settings"
486 type: int
487 min: 0
488 default: 5
489 - variable: defaultSettings.disableRevisionCounter
490 label: Disable Revision Counter
491 description: "This setting is only for volumes created by UI. By default, this is false meaning there will be a reivision counter file to track every write to the volume. During salvage recovering Longhorn will pick the replica with largest reivision counter as candidate to recover the whole volume. If revision counter is disabled, Longhorn will not track every write to the volume. During the salvage recovering, Longhorn will use the 'volume-head-xxx.img' file last modification time and file size to pick the replica candidate to recover the whole volume."
492 group: "Longhorn Default Settings"
493 type: boolean
494 default: "false"
495 - variable: defaultSettings.systemManagedPodsImagePullPolicy
496 label: System Managed Pod Image Pull Policy
497 description: "This setting defines the Image Pull Policy of Longhorn system managed pods, e.g. instance manager, engine image, CSI driver, etc. The new Image Pull Policy will only apply after the system managed pods restart."
498 group: "Longhorn Default Settings"
499 type: enum
500 options:
501 - "if-not-present"
502 - "always"
503 - "never"
504 default: "if-not-present"
505 - variable: defaultSettings.allowVolumeCreationWithDegradedAvailability
506 label: Allow Volume Creation with Degraded Availability
507 description: "This setting allows user to create and attach a volume that doesn't have all the replicas scheduled at the time of creation."
508 group: "Longhorn Default Settings"
509 type: boolean
510 default: "true"
511 - variable: defaultSettings.autoCleanupSystemGeneratedSnapshot
512 label: Automatically Cleanup System Generated Snapshot
513 description: "This setting enables Longhorn to automatically cleanup the system generated snapshot after replica rebuild is done."
514 group: "Longhorn Default Settings"
515 type: boolean
516 default: "true"
517 - variable: defaultSettings.concurrentAutomaticEngineUpgradePerNodeLimit
518 label: Concurrent Automatic Engine Upgrade Per Node Limit
519 description: "This setting controls how Longhorn automatically upgrades volumes' engines to the new default engine image after upgrading Longhorn manager. The value of this setting specifies the maximum number of engines per node that are allowed to upgrade to the default engine image at the same time. If the value is 0, Longhorn will not automatically upgrade volumes' engines to default version."
520 group: "Longhorn Default Settings"
521 type: int
522 min: 0
523 default: 0
524 - variable: defaultSettings.backingImageCleanupWaitInterval
525 label: Backing Image Cleanup Wait Interval
526 description: "This interval in minutes determines how long Longhorn will wait before cleaning up the backing image file when there is no replica in the disk using it."
527 group: "Longhorn Default Settings"
528 type: int
529 min: 0
530 default: 60
531 - variable: defaultSettings.backingImageRecoveryWaitInterval
532 label: Backing Image Recovery Wait Interval
533 description: "This interval in seconds determines how long Longhorn will wait before re-downloading the backing image file when all disk files of this backing image become failed or unknown.
534 WARNING:
535 - This recovery only works for the backing image of which the creation type is \"download\".
536 - File state \"unknown\" means the related manager pods on the pod is not running or the node itself is down/disconnected."
537 group: "Longhorn Default Settings"
538 type: int
539 min: 0
540 default: 300
541 - variable: defaultSettings.guaranteedEngineManagerCPU
542 label: Guaranteed Engine Manager CPU
543 description: "This integer value indicates how many percentage of the total allocatable CPU on each node will be reserved for each engine manager Pod. For example, 10 means 10% of the total CPU on a node will be allocated to each engine manager pod on this node. This will help maintain engine stability during high node workload.
544 In order to prevent unexpected volume engine crash as well as guarantee a relative acceptable IO performance, you can use the following formula to calculate a value for this setting:
545 Guaranteed Engine Manager CPU = The estimated max Longhorn volume engine count on a node * 0.1 / The total allocatable CPUs on the node * 100.
546 The result of above calculation doesn't mean that's the maximum CPU resources the Longhorn workloads require. To fully exploit the Longhorn volume I/O performance, you can allocate/guarantee more CPU resources via this setting.
547 If it's hard to estimate the usage now, you can leave it with the default value, which is 12%. Then you can tune it when there is no running workload using Longhorn volumes.
548 WARNING:
549 - Value 0 means unsetting CPU requests for engine manager pods.
550 - Considering the possible new instance manager pods in the further system upgrade, this integer value is range from 0 to 40. And the sum with setting 'Guaranteed Engine Manager CPU' should not be greater than 40.
551 - 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.
552 - This global setting will be ignored for a node if the field \"EngineManagerCPURequest\" on the node is set.
553 - After this setting is changed, all engine 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."
554 group: "Longhorn Default Settings"
555 type: int
556 min: 0
557 max: 40
558 default: 12
559 - variable: defaultSettings.guaranteedReplicaManagerCPU
560 label: Guaranteed Replica Manager CPU
561 description: "This integer value indicates how many percentage of the total allocatable CPU on each node will be reserved for each replica manager Pod. 10 means 10% of the total CPU on a node will be allocated to each replica manager pod on this node. This will help maintain replica stability during high node workload.
562 In order to prevent unexpected volume replica crash as well as guarantee a relative acceptable IO performance, you can use the following formula to calculate a value for this setting:
563 Guaranteed Replica Manager CPU = The estimated max Longhorn volume replica count on a node * 0.1 / The total allocatable CPUs on the node * 100.
564 The result of above calculation doesn't mean that's the maximum CPU resources the Longhorn workloads require. To fully exploit the Longhorn volume I/O performance, you can allocate/guarantee more CPU resources via this setting.
565 If it's hard to estimate the usage now, you can leave it with the default value, which is 12%. Then you can tune it when there is no running workload using Longhorn volumes.
566 WARNING:
567 - Value 0 means unsetting CPU requests for replica manager pods.
568 - Considering the possible new instance manager pods in the further system upgrade, this integer value is range from 0 to 40. And the sum with setting 'Guaranteed Replica Manager CPU' should not be greater than 40.
569 - 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.
570 - This global setting will be ignored for a node if the field \"ReplicaManagerCPURequest\" on the node is set.
571 - After this setting is changed, all replica 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."
572 group: "Longhorn Default Settings"
573 type: int
574 min: 0
575 max: 40
576 default: 12
577- variable: defaultSettings.kubernetesClusterAutoscalerEnabled
578 label: Kubernetes Cluster Autoscaler Enabled (Experimental)
579 description: "Enabling this setting will notify Longhorn that the cluster is using Kubernetes Cluster Autoscaler.
580 Longhorn prevents data loss by only allowing the Cluster Autoscaler to scale down a node that met all conditions:
581 - No volume attached to the node.
582 - Is not the last node containing the replica of any volume.
583 - Is not running backing image components pod.
584 - Is not running share manager components pod."
585 group: "Longhorn Default Settings"
586 type: boolean
587 default: false
588- variable: defaultSettings.orphanAutoDeletion
589 label: Orphaned Data Cleanup
590 description: "This setting allows Longhorn to delete the orphan resource and its corresponding orphaned data automatically like stale replicas. Orphan resources on down or unknown nodes will not be cleaned up automatically."
591 group: "Longhorn Default Settings"
592 type: boolean
593 default: false
594- variable: defaultSettings.storageNetwork
595 label: Storage Network
596 description: "Longhorn uses the storage network for in-cluster data traffic. Leave this blank to use the Kubernetes cluster network.
597 To segregate the storage network, input the pre-existing NetworkAttachmentDefinition in \"<namespace>/<name>\" format.
598 WARNING:
599 - The cluster must have pre-existing Multus installed, and NetworkAttachmentDefinition IPs are reachable between nodes.
600 - DO NOT CHANGE THIS SETTING WITH ATTACHED VOLUMES. Longhorn will try to block this setting update when there are attached volumes.
601 - When applying the setting, Longhorn will restart all manager, instance-manager, and backing-image-manager pods."
602 group: "Longhorn Default Settings"
603 type: string
604 default:
605- variable: defaultSettings.deletingConfirmationFlag
606 label: Deleting Confirmation Flag
607 description: "This flag is designed to prevent Longhorn from being accidentally uninstalled which will lead to data lost.
608 Set this flag to **true** to allow Longhorn uninstallation.
609 If this flag **false**, Longhorn uninstallation job will fail. "
610 group: "Longhorn Default Settings"
611 type: boolean
612 default: "false"
613- variable: defaultSettings.engineReplicaTimeout
614 label: Timeout between Engine and Replica
615 description: "In seconds. The setting specifies the timeout between the engine and replica(s), and the value should be between 8 to 30 seconds. The default value is 8 seconds."
616 group: "Longhorn Default Settings"
617 type: int
618 default: "8"
619- variable: defaultSettings.snapshotDataIntegrity
620 label: Snapshot Data Integrity
621 description: "This setting allows users to enable or disable snapshot hashing and data integrity checking.
622 Available options are
623 - **disabled**: Disable snapshot disk file hashing and data integrity checking.
624 - **enabled**: Enables periodic snapshot disk file hashing and data integrity checking. To detect the filesystem-unaware corruption caused by bit rot or other issues in snapshot disk files, Longhorn system periodically hashes files and finds corrupted ones. Hence, the system performance will be impacted during the periodical checking.
625 - **fast-check**: Enable snapshot disk file hashing and fast data integrity checking. Longhorn system only hashes snapshot disk files if their are not hashed or the modification time are changed. In this mode, filesystem-unaware corruption cannot be detected, but the impact on system performance can be minimized."
626 group: "Longhorn Default Settings"
627 type: string
628 default: "disabled"
629- variable: defaultSettings.snapshotDataIntegrityImmediateCheckAfterSnapshotCreation
630 label: Immediate Snapshot Data Integrity Check After Creating a Snapshot
631 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."
632 group: "Longhorn Default Settings"
633 type: boolean
634 default: "false"
635- variable: defaultSettings.snapshotDataIntegrityCronjob
636 label: Snapshot Data Integrity Check CronJob
637 description: "Unix-cron string format. The setting specifies when Longhorn checks the data integrity of snapshot disk files.
638 Warning: Hashing snapshot disk files impacts the performance of the system. It is recommended to run data integrity checks during off-peak times and to reduce the frequency of checks."
639 group: "Longhorn Default Settings"
640 type: string
641 default: "0 0 */7 * *"
642- variable: defaultSettings.removeSnapshotsDuringFilesystemTrim
643 label: Remove Snapshots During Filesystem Trim
644 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.\n\n
645 Since Longhorn filesystem trim feature can be applied to the volume head and the followed continuous removed or system snapshots only.\n\n
646 Notice that trying to trim a removed files from a valid snapshot will do nothing but the filesystem will discard this kind of in-memory trimmable file info.\n\n
647 Later on if you mark the snapshot as removed and want to retry the trim, you may need to unmount and remount the filesystem so that the filesystem can recollect the trimmable file info."
648 group: "Longhorn Default Settings"
649 type: boolean
650 default: "false"
651- variable: defaultSettings.fastReplicaRebuildEnabled
652 label: Fast Replica Rebuild Enabled
653 description: "This feature supports the fast replica rebuilding. It relies on the checksum of snapshot disk files, so setting the snapshot-data-integrity to **enable** or **fast-check** is a prerequisite."
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: persistence.defaultClass
664 default: "true"
665 description: "Set as default StorageClass for Longhorn"
666 label: Default Storage Class
667 group: "Longhorn Storage Class Settings"
668 required: true
669 type: boolean
670- variable: persistence.reclaimPolicy
671 label: Storage Class Retain Policy
672 description: "Define reclaim policy (Retain or Delete)"
673 group: "Longhorn Storage Class Settings"
674 required: true
675 type: enum
676 options:
677 - "Delete"
678 - "Retain"
679 default: "Delete"
680- variable: persistence.defaultClassReplicaCount
681 description: "Set replica count for Longhorn StorageClass"
682 label: Default Storage Class Replica Count
683 group: "Longhorn Storage Class Settings"
684 type: int
685 min: 1
686 max: 10
687 default: 3
688- variable: persistence.defaultDataLocality
689 description: "Set data locality for Longhorn StorageClass"
690 label: Default Storage Class Data Locality
691 group: "Longhorn Storage Class Settings"
692 type: enum
693 options:
694 - "disabled"
695 - "best-effort"
696 default: "disabled"
697- variable: persistence.recurringJobSelector.enable
698 description: "Enable recurring job selector for Longhorn StorageClass"
699 group: "Longhorn Storage Class Settings"
700 label: Enable Storage Class Recurring Job Selector
701 type: boolean
702 default: false
703 show_subquestion_if: true
704 subquestions:
705 - variable: persistence.recurringJobSelector.jobList
706 description: 'Recurring job selector list for Longhorn StorageClass. Please be careful of quotes of input. e.g., [{"name":"backup", "isGroup":true}]'
707 label: Storage Class Recurring Job Selector List
708 group: "Longhorn Storage Class Settings"
709 type: string
710 default:
711- variable: defaultSettings.defaultNodeSelector.enable
712 description: "Enable recurring Node selector for Longhorn StorageClass"
713 group: "Longhorn Storage Class Settings"
714 label: Enable Storage Class Node Selector
715 type: boolean
716 default: false
717 show_subquestion_if: true
718 subquestions:
719 - variable: defaultSettings.defaultNodeSelector.selector
720 label: Storage Class Node Selector
721 description: 'We use NodeSelector when we want to bind PVC via StorageClass into desired mountpoint on the nodes tagged whith its value'
722 group: "Longhorn Default Settings"
723 type: string
724 default:
725- variable: persistence.backingImage.enable
726 description: "Set backing image for Longhorn StorageClass"
727 group: "Longhorn Storage Class Settings"
728 label: Default Storage Class Backing Image
729 type: boolean
730 default: false
731 show_subquestion_if: true
732 subquestions:
733 - variable: persistence.backingImage.name
734 description: 'Specify a backing image that will be used by Longhorn volumes in Longhorn StorageClass. If not exists, the backing image data source type and backing image data source parameters should be specified so that Longhorn will create the backing image before using it.'
735 label: Storage Class Backing Image Name
736 group: "Longhorn Storage Class Settings"
737 type: string
738 default:
739 - variable: persistence.backingImage.expectedChecksum
740 description: 'Specify the expected SHA512 checksum of the selected backing image in Longhorn StorageClass.
741 WARNING:
742 - If the backing image name is not specified, setting this field is meaningless.
743 - It is not recommended to set this field if the data source type is \"export-from-volume\".'
744 label: Storage Class Backing Image Expected SHA512 Checksum
745 group: "Longhorn Storage Class Settings"
746 type: string
747 default:
748 - variable: persistence.backingImage.dataSourceType
749 description: 'Specify the data source type for the backing image used in Longhorn StorageClass.
750 If the backing image does not exists, Longhorn will use this field to create a backing image. Otherwise, Longhorn will use it to verify the selected backing image.
751 WARNING:
752 - If the backing image name is not specified, setting this field is meaningless.
753 - 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.'
754 label: Storage Class Backing Image Data Source Type
755 group: "Longhorn Storage Class Settings"
756 type: enum
757 options:
758 - ""
759 - "download"
760 - "upload"
761 - "export-from-volume"
762 default: ""
763 - variable: persistence.backingImage.dataSourceParameters
764 description: "Specify the data source parameters for the backing image used in Longhorn StorageClass.
765 If the backing image does not exists, Longhorn will use this field to create a backing image. Otherwise, Longhorn will use it to verify the selected backing image.
766 This option accepts a json string of a map. e.g., '{\"url\":\"https://backing-image-example.s3-region.amazonaws.com/test-backing-image\"}'.
767 WARNING:
768 - If the backing image name is not specified, setting this field is meaningless.
769 - Be careful of the quotes here."
770 label: Storage Class Backing Image Data Source Parameters
771 group: "Longhorn Storage Class Settings"
772 type: string
773 default:
774- variable: persistence.removeSnapshotsDuringFilesystemTrim
775 description: "Allow automatically removing snapshots during filesystem trim for Longhorn StorageClass"
776 label: Default Storage Class Remove Snapshots During Filesystem Trim
777 group: "Longhorn Storage Class Settings"
778 type: enum
779 options:
780 - "ignored"
781 - "enabled"
782 - "disabled"
783 default: "ignored"
784- variable: ingress.enabled
785 default: "false"
786 description: "Expose app using Layer 7 Load Balancer - ingress"
787 type: boolean
788 group: "Services and Load Balancing"
789 label: Expose app using Layer 7 Load Balancer
790 show_subquestion_if: true
791 subquestions:
792 - variable: ingress.host
793 default: "xip.io"
794 description: "layer 7 Load Balancer hostname"
795 type: hostname
796 required: true
797 label: Layer 7 Load Balancer Hostname
798 - variable: ingress.path
799 default: "/"
800 description: "If ingress is enabled you can set the default ingress path"
801 type: string
802 required: true
803 label: Ingress Path
804- variable: service.ui.type
805 default: "Rancher-Proxy"
806 description: "Define Longhorn UI service type"
807 type: enum
808 options:
809 - "ClusterIP"
810 - "NodePort"
811 - "LoadBalancer"
812 - "Rancher-Proxy"
813 label: Longhorn UI Service
814 show_if: "ingress.enabled=false"
815 group: "Services and Load Balancing"
816 show_subquestion_if: "NodePort"
817 subquestions:
818 - variable: service.ui.nodePort
819 default: ""
820 description: "NodePort port number(to set explicitly, choose port between 30000-32767)"
821 type: int
822 min: 30000
823 max: 32767
824 show_if: "service.ui.type=NodePort||service.ui.type=LoadBalancer"
825 label: UI Service NodePort number
826- variable: enablePSP
827 default: "false"
828 description: "Setup a pod security policy for Longhorn workloads."
829 label: Pod Security Policy
830 type: boolean
831 group: "Other Settings"
832- variable: global.cattle.windowsCluster.enabled
833 default: "false"
834 description: "Enable this to allow Longhorn to run on the Rancher deployed Windows cluster."
835 label: Rancher Windows Cluster
836 type: boolean
837 group: "Other Settings"