blob: 86201d67efa014026109e7d497252bcd97a9dad7 [file] [log] [blame]
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +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
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +040015 description: "Repository for the Longhorn Manager image."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +040016 type: string
17 label: Longhorn Manager Image Repository
18 group: "Longhorn Images Settings"
19 - variable: image.longhorn.manager.tag
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +040020 default: v1.8.1
21 description: "Tag for the Longhorn Manager image."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +040022 type: string
23 label: Longhorn Manager Image Tag
24 group: "Longhorn Images Settings"
25 - variable: image.longhorn.engine.repository
26 default: longhornio/longhorn-engine
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +040027 description: "Repository for the Longhorn Engine image."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +040028 type: string
29 label: Longhorn Engine Image Repository
30 group: "Longhorn Images Settings"
31 - variable: image.longhorn.engine.tag
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +040032 default: v1.8.1
33 description: "Tag for the Longhorn Engine image."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +040034 type: string
35 label: Longhorn Engine Image Tag
36 group: "Longhorn Images Settings"
37 - variable: image.longhorn.ui.repository
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +040038 default: longhornio/longhorn-ui
39 description: "Repository for the Longhorn UI image."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +040040 type: string
41 label: Longhorn UI Image Repository
42 group: "Longhorn Images Settings"
43 - variable: image.longhorn.ui.tag
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +040044 default: v1.8.1
45 description: "Tag for the Longhorn UI image."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +040046 type: string
47 label: Longhorn UI Image Tag
48 group: "Longhorn Images Settings"
49 - variable: image.longhorn.instanceManager.repository
50 default: longhornio/longhorn-instance-manager
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +040051 description: "Repository for the Longhorn Instance Manager image."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +040052 type: string
53 label: Longhorn Instance Manager Image Repository
54 group: "Longhorn Images Settings"
55 - variable: image.longhorn.instanceManager.tag
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +040056 default: v1.8.1
57 description: "Tag for the Longhorn Instance Manager image."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +040058 type: string
59 label: Longhorn Instance Manager Image Tag
60 group: "Longhorn Images Settings"
61 - variable: image.longhorn.shareManager.repository
62 default: longhornio/longhorn-share-manager
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +040063 description: "Repository for the Longhorn Share Manager image."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +040064 type: string
65 label: Longhorn Share Manager Image Repository
66 group: "Longhorn Images Settings"
67 - variable: image.longhorn.shareManager.tag
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +040068 default: v1.8.1
69 description: "Tag for the Longhorn Share Manager image."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +040070 type: string
71 label: Longhorn Share Manager Image Tag
72 group: "Longhorn Images Settings"
73 - variable: image.longhorn.backingImageManager.repository
74 default: longhornio/backing-image-manager
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +040075 description: "Repository for the Backing Image Manager image. When unspecified, Longhorn uses the default value."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +040076 type: string
77 label: Longhorn Backing Image Manager Image Repository
78 group: "Longhorn Images Settings"
79 - variable: image.longhorn.backingImageManager.tag
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +040080 default: v1.8.1
81 description: "Tag for the Backing Image Manager image. When unspecified, Longhorn uses the default value."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +040082 type: string
83 label: Longhorn Backing Image Manager Image Tag
84 group: "Longhorn Images Settings"
85 - variable: image.longhorn.supportBundleKit.repository
86 default: longhornio/support-bundle-kit
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +040087 description: "Repository for the Longhorn Support Bundle Manager image."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +040088 type: string
89 label: Longhorn Support Bundle Kit Image Repository
90 group: "Longhorn Images Settings"
91 - variable: image.longhorn.supportBundleKit.tag
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +040092 default: v0.0.52
93 description: "Tag for the Longhorn Support Bundle Manager image."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +040094 type: string
95 label: Longhorn Support Bundle Kit Image Tag
96 group: "Longhorn Images Settings"
97 - variable: image.csi.attacher.repository
98 default: longhornio/csi-attacher
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +040099 description: "Repository for the CSI attacher image. When unspecified, Longhorn uses the default value."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400100 type: string
101 label: Longhorn CSI Attacher Image Repository
102 group: "Longhorn CSI Driver Images"
103 - variable: image.csi.attacher.tag
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400104 default: v4.8.1
105 description: "Tag for the CSI attacher image. When unspecified, Longhorn uses the default value."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400106 type: string
107 label: Longhorn CSI Attacher Image Tag
108 group: "Longhorn CSI Driver Images"
109 - variable: image.csi.provisioner.repository
110 default: longhornio/csi-provisioner
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400111 description: "Repository for the CSI Provisioner image. When unspecified, Longhorn uses the default value."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400112 type: string
113 label: Longhorn CSI Provisioner Image Repository
114 group: "Longhorn CSI Driver Images"
115 - variable: image.csi.provisioner.tag
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400116 default: v5.2.0
117 description: "Tag for the CSI Provisioner image. When unspecified, Longhorn uses the default value."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400118 type: string
119 label: Longhorn CSI Provisioner Image Tag
120 group: "Longhorn CSI Driver Images"
121 - variable: image.csi.nodeDriverRegistrar.repository
122 default: longhornio/csi-node-driver-registrar
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400123 description: "Repository for the CSI Node Driver Registrar image. When unspecified, Longhorn uses the default value."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400124 type: string
125 label: Longhorn CSI Node Driver Registrar Image Repository
126 group: "Longhorn CSI Driver Images"
127 - variable: image.csi.nodeDriverRegistrar.tag
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400128 default: v2.13.0
129 description: "Tag for the CSI Node Driver Registrar image. When unspecified, Longhorn uses the default value."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400130 type: string
131 label: Longhorn CSI Node Driver Registrar Image Tag
132 group: "Longhorn CSI Driver Images"
133 - variable: image.csi.resizer.repository
134 default: longhornio/csi-resizer
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400135 description: "Repository for the CSI Resizer image. When unspecified, Longhorn uses the default value."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400136 type: string
137 label: Longhorn CSI Driver Resizer Image Repository
138 group: "Longhorn CSI Driver Images"
139 - variable: image.csi.resizer.tag
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400140 default: v1.13.2
141 description: "Tag for the CSI Resizer image. When unspecified, Longhorn uses the default value."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400142 type: string
143 label: Longhorn CSI Driver Resizer Image Tag
144 group: "Longhorn CSI Driver Images"
145 - variable: image.csi.snapshotter.repository
146 default: longhornio/csi-snapshotter
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400147 description: "Repository for the CSI Snapshotter image. When unspecified, Longhorn uses the default value."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400148 type: string
149 label: Longhorn CSI Driver Snapshotter Image Repository
150 group: "Longhorn CSI Driver Images"
151 - variable: image.csi.snapshotter.tag
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400152 default: v8.2.0
153 description: "Tag for the CSI Snapshotter image. When unspecified, Longhorn uses the default value."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400154 type: string
155 label: Longhorn CSI Driver Snapshotter Image Tag
156 group: "Longhorn CSI Driver Images"
157 - variable: image.csi.livenessProbe.repository
158 default: longhornio/livenessprobe
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400159 description: "Repository for the CSI liveness probe image. When unspecified, Longhorn uses the default value."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400160 type: string
161 label: Longhorn CSI Liveness Probe Image Repository
162 group: "Longhorn CSI Driver Images"
163 - variable: image.csi.livenessProbe.tag
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400164 default: v2.15.0
165 description: "Tag for the CSI liveness probe image. When unspecified, Longhorn uses the default value."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400166 type: string
167 label: Longhorn CSI Liveness Probe Image Tag
168 group: "Longhorn CSI Driver Images"
169- variable: privateRegistry.registryUrl
170 label: Private registry URL
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400171 description: "URL of a private registry. When unspecified, Longhorn uses the default system registry."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400172 group: "Private Registry Settings"
173 type: string
174 default: ""
175- variable: privateRegistry.registrySecret
176 label: Private registry secret name
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400177 description: "Kubernetes secret that allows you to pull images from a private registry. This setting applies only when creation of private registry secrets is enabled. You must include the private registry name in the secret name."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400178 group: "Private Registry Settings"
179 type: string
180 default: ""
181- variable: privateRegistry.createSecret
182 default: "true"
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400183 description: "Setting that allows you to create a private registry secret."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400184 type: boolean
185 group: "Private Registry Settings"
186 label: Create Secret for Private Registry Settings
187 show_subquestion_if: true
188 subquestions:
189 - variable: privateRegistry.registryUser
190 label: Private registry user
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400191 description: "User account used for authenticating with a private registry."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400192 type: string
193 default: ""
194 - variable: privateRegistry.registryPasswd
195 label: Private registry password
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400196 description: "Password for authenticating with a private registry."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400197 type: password
198 default: ""
199- variable: longhorn.default_setting
200 default: "false"
201 description: "Customize the default settings before installing Longhorn for the first time. This option will only work if the cluster hasn't installed Longhorn."
202 label: "Customize Default Settings"
203 type: boolean
204 show_subquestion_if: true
205 group: "Longhorn Default Settings"
206 subquestions:
207 - variable: csi.kubeletRootDir
208 default:
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400209 description: "kubelet root directory. When unspecified, Longhorn uses the default value."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400210 type: string
211 label: Kubelet Root Directory
212 group: "Longhorn CSI Driver Settings"
213 - variable: csi.attacherReplicaCount
214 type: int
215 default: 3
216 min: 1
217 max: 10
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400218 description: "Replica count of the CSI Attacher. When unspecified, Longhorn uses the default value (\"3\")."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400219 label: Longhorn CSI Attacher replica count
220 group: "Longhorn CSI Driver Settings"
221 - variable: csi.provisionerReplicaCount
222 type: int
223 default: 3
224 min: 1
225 max: 10
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400226 description: "Replica count of the CSI Provisioner. When unspecified, Longhorn uses the default value (\"3\")."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400227 label: Longhorn CSI Provisioner replica count
228 group: "Longhorn CSI Driver Settings"
229 - variable: csi.resizerReplicaCount
230 type: int
231 default: 3
232 min: 1
233 max: 10
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400234 description: "Replica count of the CSI Resizer. When unspecified, Longhorn uses the default value (\"3\")."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400235 label: Longhorn CSI Resizer replica count
236 group: "Longhorn CSI Driver Settings"
237 - variable: csi.snapshotterReplicaCount
238 type: int
239 default: 3
240 min: 1
241 max: 10
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400242 description: "Replica count of the CSI Snapshotter. When unspecified, Longhorn uses the default value (\"3\")."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400243 label: Longhorn CSI Snapshotter replica count
244 group: "Longhorn CSI Driver Settings"
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400245 - variable: defaultSettings.allowRecurringJobWhileVolumeDetached
246 label: Allow Recurring Job While Volume Is Detached
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400247 description: 'Setting that allows Longhorn to automatically attach a volume and create snapshots or backups when recurring jobs are run.'
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400248 group: "Longhorn Default Settings"
249 type: boolean
250 default: "false"
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400251 - variable: defaultSettings.snapshotMaxCount
252 label: Snapshot Maximum Count
253 description: 'Maximum snapshot count for a volume. The value should be between 2 to 250.'
254 group: "Longhorn Default Settings"
255 type: int
256 min: 2
257 max: 250
258 default: 250
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400259 - variable: defaultSettings.createDefaultDiskLabeledNodes
260 label: Create Default Disk on Labeled Nodes
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400261 description: 'Setting that allows Longhorn to automatically create a default disk only on nodes with the label "node.longhorn.io/create-default-disk=true" (if no other disks exist). When this setting is disabled, Longhorn creates a default disk on each node that is added to the cluster.'
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400262 group: "Longhorn Default Settings"
263 type: boolean
264 default: "false"
265 - variable: defaultSettings.defaultDataPath
266 label: Default Data Path
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400267 description: 'Default path for storing data on a host. The default value is "/var/lib/longhorn/".'
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400268 group: "Longhorn Default Settings"
269 type: string
270 default: "/var/lib/longhorn/"
271 - variable: defaultSettings.defaultDataLocality
272 label: Default Data Locality
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400273 description: 'Default data locality. A Longhorn volume has data locality if a local replica of the volume exists on the same node as the pod that is using the volume.'
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400274 group: "Longhorn Default Settings"
275 type: enum
276 options:
277 - "disabled"
278 - "best-effort"
279 default: "disabled"
280 - variable: defaultSettings.replicaSoftAntiAffinity
281 label: Replica Node Level Soft Anti-Affinity
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400282 description: 'Allow scheduling on nodes with existing healthy replicas of the same volume. By default, false.'
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400283 group: "Longhorn Default Settings"
284 type: boolean
285 default: "false"
286 - variable: defaultSettings.replicaAutoBalance
287 label: Replica Auto Balance
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400288 description: 'Enable this setting automatically re-balances replicas when discovered an available node.'
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400289 group: "Longhorn Default Settings"
290 type: enum
291 options:
292 - "disabled"
293 - "least-effort"
294 - "best-effort"
295 default: "disabled"
296 - variable: defaultSettings.storageOverProvisioningPercentage
297 label: Storage Over Provisioning Percentage
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400298 description: "Percentage of storage that can be allocated relative to hard drive capacity. The default value is 100."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400299 group: "Longhorn Default Settings"
300 type: int
301 min: 0
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400302 default: 100
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400303 - variable: defaultSettings.storageMinimalAvailablePercentage
304 label: Storage Minimal Available Percentage
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400305 description: "If the minimum available disk capacity exceeds the actual percentage of available disk capacity, the disk becomes unschedulable until more space is freed up. By default, 25."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400306 group: "Longhorn Default Settings"
307 type: int
308 min: 0
309 max: 100
310 default: 25
311 - variable: defaultSettings.storageReservedPercentageForDefaultDisk
312 label: Storage Reserved Percentage For Default Disk
313 description: "The reserved percentage specifies the percentage of disk space that will not be allocated to the default disk on each new Longhorn node."
314 group: "Longhorn Default Settings"
315 type: int
316 min: 0
317 max: 100
318 default: 30
319 - variable: defaultSettings.upgradeChecker
320 label: Enable Upgrade Checker
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400321 description: 'Upgrade Checker that periodically checks for new Longhorn versions. When a new version is available, a notification appears on the Longhorn UI. This setting is enabled by default.'
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400322 group: "Longhorn Default Settings"
323 type: boolean
324 default: "true"
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400325 - variable: defaultSettings.upgradeResponderURL
326 label: Upgrade Responder URL
327 description: >-
328 The Upgrade Responder sends a notification whenever a new Longhorn
329 version that you can upgrade to becomes available. The default value
330 is "https://longhorn-upgrade-responder.rancher.io/v1/checkupgrade".
331 group: Longhorn Default Settings
332 type: string
333 default: 'https://longhorn-upgrade-responder.rancher.io/v1/checkupgrade'
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400334 - variable: defaultSettings.defaultReplicaCount
335 label: Default Replica Count
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400336 description: "Default number of replicas for volumes created using the Longhorn UI. For Kubernetes configuration, modify the `numberOfReplicas` field in the StorageClass. The default value is \"3\"."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400337 group: "Longhorn Default Settings"
338 type: int
339 min: 1
340 max: 20
341 default: 3
342 - variable: defaultSettings.defaultLonghornStaticStorageClass
343 label: Default Longhorn Static StorageClass Name
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400344 description: "Default name of Longhorn Static StorageClass. The \"storageClassName\" is assigned to PVs and PVCs that are created for an existing Longhorn volume. The \"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 \"storageClassName\" needs to be an existing StorageClass. The default value is \"longhorn-static\"."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400345 group: "Longhorn Default Settings"
346 type: string
347 default: "longhorn-static"
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400348 - variable: defaultSettings.failedBackupTTL
349 label: Failed Backup Time to Live
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400350 description: "Number of minutes that Longhorn keeps a failed backup resource. When the value is \"0\", automatic deletion is disabled."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400351 group: "Longhorn Default Settings"
352 type: int
353 min: 0
354 default: 1440
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400355 - variable: defaultSettings.backupExecutionTimeout
356 label: Backup Execution Timeout
357 description: "Number of minutes that Longhorn allows for the backup execution. The default value is \"1\"."
358 group: "Longhorn Default Settings"
359 type: int
360 min: 1
361 default: 1
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400362 - variable: defaultSettings.restoreVolumeRecurringJobs
363 label: Restore Volume Recurring Jobs
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400364 description: "Restore recurring jobs from the backup volume on the backup target and create recurring jobs if not exist during a backup restoration."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400365 group: "Longhorn Default Settings"
366 type: boolean
367 default: "false"
368 - variable: defaultSettings.recurringSuccessfulJobsHistoryLimit
369 label: Cronjob Successful Jobs History Limit
370 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."
371 group: "Longhorn Default Settings"
372 type: int
373 min: 0
374 default: 1
375 - variable: defaultSettings.recurringFailedJobsHistoryLimit
376 label: Cronjob Failed Jobs History Limit
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400377 description: 'Maximum number of failed recurring backup and snapshot jobs to be retained. When the value is "0", a history of failed recurring jobs is not retained.'
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400378 group: "Longhorn Default Settings"
379 type: int
380 min: 0
381 default: 1
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400382 - variable: defaultSettings.recurringJobMaxRetention
383 label: Maximum Retention Number for Recurring Job
384 description: "Maximum number of snapshots or backups to be retained."
385 group: "Longhorn Default Settings"
386 type: int
387 default: 100
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400388 - variable: defaultSettings.supportBundleFailedHistoryLimit
389 label: SupportBundle Failed History Limit
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400390 description: "This setting specifies how many failed support bundles can exist in the cluster. Set this value to **0** to have Longhorn automatically purge all failed support bundles."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400391 group: "Longhorn Default Settings"
392 type: int
393 min: 0
394 default: 1
395 - variable: defaultSettings.autoSalvage
396 label: Automatic salvage
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400397 description: "Setting that allows Longhorn to automatically salvage volumes when all replicas become faulty (for example, when the network connection is interrupted). Longhorn determines which replicas are usable and then uses these replicas for the volume. This setting is enabled by default."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400398 group: "Longhorn Default Settings"
399 type: boolean
400 default: "true"
401 - variable: defaultSettings.autoDeletePodWhenVolumeDetachedUnexpectedly
402 label: Automatically Delete Workload Pod when The Volume Is Detached Unexpectedly
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400403 description: 'Setting that allows Longhorn to automatically delete a workload pod that is managed by a controller (for example, daemonset) whenever a Longhorn volume is detached unexpectedly (for example, during Kubernetes upgrades). After deletion, the controller restarts the pod and then Kubernetes handles volume reattachment and remounting.'
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400404 group: "Longhorn Default Settings"
405 type: boolean
406 default: "true"
407 - variable: defaultSettings.disableSchedulingOnCordonedNode
408 label: Disable Scheduling On Cordoned Node
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400409 description: "Setting that prevents Longhorn Manager from scheduling replicas on a cordoned Kubernetes node. This setting is enabled by default."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400410 group: "Longhorn Default Settings"
411 type: boolean
412 default: "true"
413 - variable: defaultSettings.replicaZoneSoftAntiAffinity
414 label: Replica Zone Level Soft Anti-Affinity
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400415 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."
416 group: "Longhorn Default Settings"
417 type: boolean
418 default: "true"
419 - variable: defaultSettings.replicaDiskSoftAntiAffinity
420 label: Replica Disk Level Soft Anti-Affinity
421 description: 'Allow scheduling on disks with existing healthy replicas of the same volume. By default, true.'
422 group: "Longhorn Default Settings"
423 type: boolean
424 default: "true"
425 - variable: defaultSettings.allowEmptyNodeSelectorVolume
426 label: Allow Empty Node Selector Volume
427 description: "Setting that allows scheduling of empty node selector volumes to any node."
428 group: "Longhorn Default Settings"
429 type: boolean
430 default: "true"
431 - variable: defaultSettings.allowEmptyDiskSelectorVolume
432 label: Allow Empty Disk Selector Volume
433 description: "Setting that allows scheduling of empty disk selector volumes to any disk."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400434 group: "Longhorn Default Settings"
435 type: boolean
436 default: "true"
437 - variable: defaultSettings.nodeDownPodDeletionPolicy
438 label: Pod Deletion Policy When Node is Down
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400439 description: "Policy that defines the action Longhorn takes when a volume is stuck with a StatefulSet or Deployment pod on a node that failed."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400440 group: "Longhorn Default Settings"
441 type: enum
442 options:
443 - "do-nothing"
444 - "delete-statefulset-pod"
445 - "delete-deployment-pod"
446 - "delete-both-statefulset-and-deployment-pod"
447 default: "do-nothing"
448 - variable: defaultSettings.nodeDrainPolicy
449 label: Node Drain Policy
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400450 description: "Policy that defines the action Longhorn takes when a node with the last healthy replica of a volume is drained."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400451 group: "Longhorn Default Settings"
452 type: enum
453 options:
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400454 - "block-for-eviction"
455 - "block-for-eviction-if-contains-last-replica"
456 - "block-if-contains-last-replica"
457 - "allow-if-replica-is-stopped"
458 - "always-allow"
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400459 default: "block-if-contains-last-replica"
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400460 - variable: defaultSettings.detachManuallyAttachedVolumesWhenCordoned
461 label: Detach Manually Attached Volumes When Cordoned
462 description: "Setting that allows automatic detaching of manually-attached volumes when a node is cordoned."
463 group: "Longhorn Default Settings"
464 type: boolean
465 default: "false"
466 - variable: defaultSettings.priorityClass
467 label: Priority Class
468 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."
469 group: "Longhorn Default Settings"
470 type: string
471 default: "longhorn-critical"
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400472 - variable: defaultSettings.replicaReplenishmentWaitInterval
473 label: Replica Replenishment Wait Interval
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400474 description: "The interval in seconds determines how long Longhorn will at least wait to reuse the existing data on a failed replica rather than directly creating a new replica for a degraded volume."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400475 group: "Longhorn Default Settings"
476 type: int
477 min: 0
478 default: 600
479 - variable: defaultSettings.concurrentReplicaRebuildPerNodeLimit
480 label: Concurrent Replica Rebuild Per Node Limit
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400481 description: "Maximum number of replicas that can be concurrently rebuilt on each node. **Caution**: [1] This setting replaces \"Disable Replica Rebuild\". Instead of delaying replica startup, Longhorn skips replica object replenishment to limit the number of concurrently rebuilding replicas. [2] When the value is \"0\", the eviction and data locality features do not work, but ongoing replica rebuilding and backup/restoration operations should remain unaffected."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400482 group: "Longhorn Default Settings"
483 type: int
484 min: 0
485 default: 5
486 - variable: defaultSettings.concurrentVolumeBackupRestorePerNodeLimit
487 label: Concurrent Volume Backup Restore Per Node Limit
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400488 description: "Maximum number of volumes that can be concurrently restored on each node using a backup. When the value is \"0\", restoration of volumes using a backup is disabled."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400489 group: "Longhorn Default Settings"
490 type: int
491 min: 0
492 default: 5
493 - variable: defaultSettings.disableRevisionCounter
494 label: Disable Revision Counter
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400495 description: "Setting that disables the revision counter and thereby prevents Longhorn from tracking all write operations to a volume. When salvaging a volume, Longhorn uses properties of the \"volume-head-xxx.img\" file (the last file size and the last time the file was modified) to select the replica to be used for volume recovery. This setting applies only to volumes created using the Longhorn UI."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400496 group: "Longhorn Default Settings"
497 type: boolean
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400498 default: "true"
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400499 - variable: defaultSettings.systemManagedPodsImagePullPolicy
500 label: System Managed Pod Image Pull Policy
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400501 description: "Image pull policy for system-managed pods, such as Instance Manager, engine images, and CSI Driver. Changes to the image pull policy are applied only after the system-managed pods restart."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400502 group: "Longhorn Default Settings"
503 type: enum
504 options:
505 - "if-not-present"
506 - "always"
507 - "never"
508 default: "if-not-present"
509 - variable: defaultSettings.allowVolumeCreationWithDegradedAvailability
510 label: Allow Volume Creation with Degraded Availability
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400511 description: "Setting that allows you to create and attach a volume without having all replicas scheduled at the time of creation."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400512 group: "Longhorn Default Settings"
513 type: boolean
514 default: "true"
515 - variable: defaultSettings.autoCleanupSystemGeneratedSnapshot
516 label: Automatically Cleanup System Generated Snapshot
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400517 description: "Setting that allows Longhorn to automatically clean up the system-generated snapshot after replica rebuilding is completed."
518 group: "Longhorn Default Settings"
519 type: boolean
520 default: "true"
521 - variable: defaultSettings.autoCleanupRecurringJobBackupSnapshot
522 label: Automatically Cleanup Recurring Job Backup Snapshot
523 description: "Setting that allows Longhorn to automatically clean up the snapshot generated by a recurring backup job."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400524 group: "Longhorn Default Settings"
525 type: boolean
526 default: "true"
527 - variable: defaultSettings.concurrentAutomaticEngineUpgradePerNodeLimit
528 label: Concurrent Automatic Engine Upgrade Per Node Limit
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400529 description: "Maximum number of engines that are allowed to concurrently upgrade on each node after Longhorn Manager is upgraded. When the value is \"0\", Longhorn does not automatically upgrade volume engines to the new default engine image version."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400530 group: "Longhorn Default Settings"
531 type: int
532 min: 0
533 default: 0
534 - variable: defaultSettings.backingImageCleanupWaitInterval
535 label: Backing Image Cleanup Wait Interval
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400536 description: "Number of minutes that Longhorn waits before cleaning up the backing image file when no replicas in the disk are using it."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400537 group: "Longhorn Default Settings"
538 type: int
539 min: 0
540 default: 60
541 - variable: defaultSettings.backingImageRecoveryWaitInterval
542 label: Backing Image Recovery Wait Interval
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400543 description: "Number of seconds that Longhorn waits before downloading a backing image file again when the status of all image disk files changes to \"failed\" or \"unknown\"."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400544 group: "Longhorn Default Settings"
545 type: int
546 min: 0
547 default: 300
548 - variable: defaultSettings.guaranteedInstanceManagerCPU
549 label: Guaranteed Instance Manager CPU
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400550 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. You can specify a value between \"0\" and \"40\" to accommodate the possible number of new Instance Manager pods during upgrades. The default value is \"12\". **Caution**: [1] When the value is \"0\", CPU requests are removed from the spec of Instance Manager pods. [2] A new set of Instance Manager pods must be deployed when Longhorn is upgraded. If the available CPUs are not sufficient for the new pods, you must detach the volumes using the oldest Instance Manager pods so that Longhorn can automatically clean up the old pods and release the CPU resources. Once completed, the new pods with the latest Instance Manager image are launched. [3] This global setting is not applied to nodes with a specified value for the \"InstanceManagerCPURequest\" field. [4] After this setting is configured, Instance Manager pods on all nodes that use this setting are automatically restarted. **Do not change this setting while volumes are still attached.**"
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400551 group: "Longhorn Default Settings"
552 type: int
553 min: 0
554 max: 40
555 default: 12
556 - variable: defaultSettings.logLevel
557 label: Log Level
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400558 description: 'Log levels that indicate the type and severity of logs in Longhorn Manager. The default value is "Info". (Options: "Panic", "Fatal", "Error", "Warn", "Info", "Debug", "Trace")'
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400559 group: "Longhorn Default Settings"
560 type: string
561 default: "Info"
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400562 - variable: defaultSettings.disableSnapshotPurge
563 label: Disable Snapshot Purge
564 description: "Setting that temporarily prevents all attempts to purge volume snapshots."
565 group: "Longhorn Default Settings"
566 type: boolean
567 default: "false"
568 - variable: defaultSettings.freezeFilesystemForSnapshot
569 description: "Setting that freezes the filesystem on the root partition before a snapshot is created."
570 group: "Longhorn Default Settings"
571 type: boolean
572 default: "false"
573 - variable: defaultSettings.kubernetesClusterAutoscalerEnabled
574 label: Kubernetes Cluster Autoscaler Enabled (Experimental)
575 description: "Setting that notifies Longhorn that the cluster is using the Kubernetes Cluster Autoscaler. **Caution**: Replica rebuilding may consume significant resources if the Kubernetes Cluster Autoscaler removes nodes with reusable replicas."
576 group: "Longhorn Default Settings"
577 type: boolean
578 default: false
579 - variable: defaultSettings.orphanAutoDeletion
580 label: Orphaned Data Cleanup
581 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."
582 group: "Longhorn Default Settings"
583 type: boolean
584 default: false
585 - variable: defaultSettings.storageNetwork
586 label: Storage Network
587 description: "Longhorn uses the storage network for in-cluster data traffic. Leave this blank to use the Kubernetes cluster network. **Caution**: This setting should change after all volumes are detached because some Longhorn component pods must be recreated to apply the setting. You cannot modify this setting while volumes are still attached."
588 group: "Longhorn Default Settings"
589 type: string
590 default:
591 - variable: defaultSettings.taintToleration
592 label: Taint Toleration
593 description: "Taint or toleration for system-managed Longhorn components. Specify values using a semicolon-separated list in `kubectl taint` syntax (Example: key1=value1:effect; key2=value2:effect). **Caution**: This setting should change after all volumes are detached because some Longhorn component pods must be recreated to apply the setting. You cannot modify this setting while volumes are still attached."
594 group: "Longhorn Default Settings"
595 type: string
596 default:
597 - variable: defaultSettings.systemManagedComponentsNodeSelector
598 label: System Managed Components NodeSelector
599 description: "Node selector for system-managed Longhorn components.. **Caution**: This setting should change after all volumes are detached because some Longhorn component pods must be recreated to apply the setting. You cannot modify this setting while volumes are still attached."
600 group: "Longhorn Default Settings"
601 type: string
602 default:
603 - variable: defaultSettings.deletingConfirmationFlag
604 label: Deleting Confirmation Flag
605 description: "Flag that prevents accidental uninstallation of Longhorn."
606 group: "Longhorn Default Settings"
607 type: boolean
608 default: "false"
609 - variable: defaultSettings.engineReplicaTimeout
610 label: Timeout between Engine and Replica
611 description: "Timeout between the Longhorn Engine and replicas. Specify a value between \"8\" and \"30\" seconds. The default value is \"8\"."
612 group: "Longhorn Default Settings"
613 type: int
614 default: "8"
615 - variable: defaultSettings.snapshotDataIntegrity
616 label: Snapshot Data Integrity
617 description: "This setting allows users to enable or disable snapshot hashing and data integrity checking."
618 group: "Longhorn Default Settings"
619 type: string
620 default: "disabled"
621 - variable: defaultSettings.snapshotDataIntegrityImmediateCheckAfterSnapshotCreation
622 label: Immediate Snapshot Data Integrity Check After Creating a Snapshot
623 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."
624 group: "Longhorn Default Settings"
625 type: boolean
626 default: "false"
627 - variable: defaultSettings.snapshotDataIntegrityCronjob
628 label: Snapshot Data Integrity Check CronJob
629 description: "Unix-cron string format. The setting specifies when Longhorn checks the data integrity of snapshot disk files."
630 group: "Longhorn Default Settings"
631 type: string
632 default: "0 0 */7 * *"
633 - variable: defaultSettings.removeSnapshotsDuringFilesystemTrim
634 label: Remove Snapshots During Filesystem Trim
635 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."
636 group: "Longhorn Default Settings"
637 type: boolean
638 default: "false"
639 - variable: defaultSettings.fastReplicaRebuildEnabled
640 label: Fast Replica Rebuild Enabled
641 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\"."
642 group: "Longhorn Default Settings"
643 type: boolean
644 default: false
645 - variable: defaultSettings.replicaFileSyncHttpClientTimeout
646 label: Timeout of HTTP Client to Replica File Sync Server
647 description: "In seconds. The setting specifies the HTTP client timeout to the file sync server."
648 group: "Longhorn Default Settings"
649 type: int
650 default: "30"
651 - variable: defaultSettings.longGRPCTimeOut
652 label: Long gRPC Timeout
653 description: "Number of seconds that Longhorn allows for the completion of replica rebuilding and snapshot cloning operations."
654 group: "Longhorn Default Settings"
655 type: int
656 default: "86400"
657 - variable: defaultSettings.backupCompressionMethod
658 label: Backup Compression Method
659 description: "Setting that allows you to specify a backup compression method."
660 group: "Longhorn Default Settings"
661 type: string
662 default: "lz4"
663 - variable: defaultSettings.backupConcurrentLimit
664 label: Backup Concurrent Limit Per Backup
665 description: "Maximum number of worker threads that can concurrently run for each backup."
666 group: "Longhorn Default Settings"
667 type: int
668 min: 1
669 default: 2
670 - variable: defaultSettings.restoreConcurrentLimit
671 label: Restore Concurrent Limit Per Backup
672 description: "This setting controls how many worker threads per restore concurrently."
673 group: "Longhorn Default Settings"
674 type: int
675 min: 1
676 default: 2
677 - variable: defaultSettings.allowCollectingLonghornUsageMetrics
678 label: Allow Collecting Longhorn Usage Metrics
679 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."
680 group: "Longhorn Default Settings"
681 type: boolean
682 default: true
683 - variable: defaultSettings.v1DataEngine
684 label: V1 Data Engine
685 description: "Setting that allows you to enable the V1 Data Engine."
686 group: "Longhorn V1 Data Engine Settings"
687 type: boolean
688 default: true
689 - variable: defaultSettings.v2DataEngine
690 label: V2 Data Engine
691 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 an experimental feature and should not be used in production environments. **Caution**: [1] **Do not modify this setting while volumes are still attached.** [2] When the V2 Data Engine is enabled, each Instance Manager pod for the V2 Data Engine uses 1 CPU core. The high CPU usage is caused by `spdk_tgt`, a process running in each Instance Manager pod that handles input/output (IO) operations and requires intensive polling. `spdk_tgt` consumes 100% of a dedicated CPU core to efficiently manage and process the IO requests, ensuring optimal performance and responsiveness for storage operations."
692 group: "Longhorn V2 Data Engine (Experimental Feature) Settings"
693 type: boolean
694 default: false
695 - variable: defaultSettings.v2DataEngineHugepageLimit
696 label: V2 Data Engine
697 description: "This allows users to configure maximum huge page size (in MiB) for the V2 Data Engine."
698 group: "Longhorn V2 Data Engine (Experimental Feature) Settings"
699 type: int
700 default: "2048"
701 - variable: defaultSettings.v2DataEngineLogLevel
702 label: V2 Data Engine
703 description: "Setting that allows you to configure the log level of the SPDK target daemon (spdk_tgt) of the V2 Data Engine."
704 group: "Longhorn V2 Data Engine (Experimental Feature) Settings"
705 type: enum
706 options:
707 - "Disabled"
708 - "Error"
709 - "Warn"
710 - "Notice"
711 - "Info"
712 - "Debug"
713 default: "Notice"
714 - variable: defaultSettings.v2DataEngineLogFlags
715 label: V2 Data Engine
716 description: "Setting that allows you to configure the log flags of the SPDK target daemon (spdk_tgt) of the V2 Data Engine."
717 group: "Longhorn V2 Data Engine (Experimental Feature) Settings"
718 type: string
719 default:
720 - variable: defaultSettings.autoCleanupSnapshotWhenDeleteBackup
721 label: Auto Cleanup Snapshot When Delete Backup
722 description: "Setting that automatically cleans up the snapshot when the backup is deleted."
723 group: "Longhorn Default Settings"
724 type: boolean
725 default: false
726 - variable: defaultSettings.rwxVolumeFastFailover
727 label: RWX Volume Fast Failover (Experimental)
728 description: "Setting that allows Longhorn to detect node failure and immediately migrate affected RWX volumes."
729 group: "Longhorn Default Settings"
730 type: boolean
731 default: false
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400732- variable: persistence.defaultClass
733 default: "true"
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400734 description: "Setting that allows you to specify the default Longhorn StorageClass."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400735 label: Default Storage Class
736 group: "Longhorn Storage Class Settings"
737 required: true
738 type: boolean
739- variable: persistence.reclaimPolicy
740 label: Storage Class Retain Policy
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400741 description: "Reclaim policy that provides instructions for handling of a volume after its claim is released. (Options: \"Retain\", \"Delete\")"
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400742 group: "Longhorn Storage Class Settings"
743 required: true
744 type: enum
745 options:
746 - "Delete"
747 - "Retain"
748 default: "Delete"
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400749- variable: persistence.defaultFsType
750 label: Storage Class Filesystem Type
751 description: "Filesystem type of the default Longhorn StorageClass"
752 group: "Longhorn Storage Class Settings"
753 type: enum
754 options:
755 - "xfs"
756 - "ext4"
757 default: "ext4"
758- variable: persistence.disableRevisionCounter
759 label: Default Storage Class Disable Revision Counter
760 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\")"
761 group: "Longhorn Storage Class Settings"
762 required: true
763 type: enum
764 options:
765 - "true"
766 - "false"
767 default: "true"
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400768- variable: persistence.defaultClassReplicaCount
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400769 description: "Replica count of the default Longhorn StorageClass."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400770 label: Default Storage Class Replica Count
771 group: "Longhorn Storage Class Settings"
772 type: int
773 min: 1
774 max: 10
775 default: 3
776- variable: persistence.defaultDataLocality
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400777 description: "Data locality of the default Longhorn StorageClass. (Options: \"disabled\", \"best-effort\")"
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400778 label: Default Storage Class Data Locality
779 group: "Longhorn Storage Class Settings"
780 type: enum
781 options:
782 - "disabled"
783 - "best-effort"
784 default: "disabled"
785- variable: persistence.recurringJobSelector.enable
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400786 description: "Setting that allows you to enable the recurring job selector for a Longhorn StorageClass."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400787 group: "Longhorn Storage Class Settings"
788 label: Enable Storage Class Recurring Job Selector
789 type: boolean
790 default: false
791 show_subquestion_if: true
792 subquestions:
793 - variable: persistence.recurringJobSelector.jobList
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400794 description: 'Recurring job selector for a Longhorn StorageClass. Ensure that quotes are used correctly when specifying job parameters. (Example: `[{"name":"backup", "isGroup":true}]`)'
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400795 label: Storage Class Recurring Job Selector List
796 group: "Longhorn Storage Class Settings"
797 type: string
798 default:
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400799- variable: persistence.defaultDiskSelector.enable
800 description: "Setting that allows you to enable the disk selector for the default Longhorn StorageClass."
801 group: "Longhorn Storage Class Settings"
802 label: Enable Storage Class Disk Selector
803 type: boolean
804 default: false
805 show_subquestion_if: true
806 subquestions:
807 - variable: persistence.defaultDiskSelector.selector
808 label: Storage Class Disk Selector
809 description: 'Disk selector for the default Longhorn StorageClass. Longhorn uses only disks with the specified tags for storing volume data. (Examples: "nvme,sata")'
810 group: "Longhorn Storage Class Settings"
811 type: string
812 default:
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400813- variable: persistence.defaultNodeSelector.enable
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400814 description: "Setting that allows you to enable the node selector for the default Longhorn StorageClass."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400815 group: "Longhorn Storage Class Settings"
816 label: Enable Storage Class Node Selector
817 type: boolean
818 default: false
819 show_subquestion_if: true
820 subquestions:
821 - variable: persistence.defaultNodeSelector.selector
822 label: Storage Class Node Selector
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400823 description: 'Node selector for the default Longhorn StorageClass. Longhorn uses only nodes with the specified tags for storing volume data. (Examples: "storage,fast")'
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400824 group: "Longhorn Storage Class Settings"
825 type: string
826 default:
827- variable: persistence.backingImage.enable
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400828 description: "Setting that allows you to use a backing image in a Longhorn StorageClass."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400829 group: "Longhorn Storage Class Settings"
830 label: Default Storage Class Backing Image
831 type: boolean
832 default: false
833 show_subquestion_if: true
834 subquestions:
835 - variable: persistence.backingImage.name
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400836 description: 'Backing image to be used for creating and restoring volumes in a Longhorn StorageClass. When no backing images are available, specify the data source type and parameters that Longhorn can use to create a backing image.'
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400837 label: Storage Class Backing Image Name
838 group: "Longhorn Storage Class Settings"
839 type: string
840 default:
841 - variable: persistence.backingImage.expectedChecksum
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400842 description: 'Expected SHA-512 checksum of a backing image used in a Longhorn StorageClass. **Caution** [1] This field is useful only if the backing image name is specified. [2] Specifying a checksum is not recommended when the data source type is \"export-from-volume\".'
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400843 label: Storage Class Backing Image Expected SHA512 Checksum
844 group: "Longhorn Storage Class Settings"
845 type: string
846 default:
847 - variable: persistence.backingImage.dataSourceType
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400848 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. **Caution** [1] This field is useful only if the backing image name is specified. [2] Backing images with data source type \"upload\" are best created using the Longhorn UI. Uploading requires sending file data to Longhorn after object creation, which can be complicated when performed manually.'
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400849 label: Storage Class Backing Image Data Source Type
850 group: "Longhorn Storage Class Settings"
851 type: enum
852 options:
853 - ""
854 - "download"
855 - "upload"
856 - "export-from-volume"
857 default: ""
858 - variable: persistence.backingImage.dataSourceParameters
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400859 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\"}'`) **Caution** [1] This field is useful only if the backing image name is specified. [2] Ensure that quotes are used correctly when specifying parameters."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400860 label: Storage Class Backing Image Data Source Parameters
861 group: "Longhorn Storage Class Settings"
862 type: string
863 default:
864- variable: persistence.removeSnapshotsDuringFilesystemTrim
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400865 description: "Setting that allows you to enable automatic snapshot removal during filesystem trim for a Longhorn StorageClass. (Options: \"ignored\", \"enabled\", \"disabled\")"
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400866 label: Default Storage Class Remove Snapshots During Filesystem Trim
867 group: "Longhorn Storage Class Settings"
868 type: enum
869 options:
870 - "ignored"
871 - "enabled"
872 - "disabled"
873 default: "ignored"
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400874- variable: persistence.dataEngine
875 description: "Setting that allows you to specify the data engine version for the default Longhorn StorageClass. (Options: \"v1\", \"v2\")"
876 label: Default Storage Class Data Engine
877 group: "Longhorn Storage Class Settings"
878 type: enum
879 options:
880 - "v1"
881 - "v2"
882 default: "v1"
883- variable: persistence.backupTargetName
884 description: "Setting that allows you to specify the backup target for the default Longhorn StorageClass"
885 label: Default Storage Class Backup Target Name
886 group: "Longhorn Storage Class Settings"
887 type: string
888 default: "default"
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400889- 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"
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400899 description: "Hostname of the Layer 7 load balancer."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400900 type: hostname
901 required: true
902 label: Layer 7 Load Balancer Hostname
903 - variable: ingress.path
904 default: "/"
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400905 description: "Default ingress path. You can access the Longhorn UI by following the full ingress path {{host}}+{{path}}."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400906 type: string
907 required: true
908 label: Ingress Path
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400909 - variable: ingress.pathType
910 default: "ImplementationSpecific"
911 description: "Path type for the ingress. (Options: \"ImplementationSpecific\", \"Exact\", \"Prefix\")"
912 type: enum
913 options:
914 - "ImplementationSpecific"
915 - "Exact"
916 - "Prefix"
917 required: true
918 label: Ingress Path Type
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400919- variable: service.ui.type
920 default: "Rancher-Proxy"
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400921 description: "Service type for Longhorn UI. (Options: \"ClusterIP\", \"NodePort\", \"LoadBalancer\", \"Rancher-Proxy\")"
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400922 type: enum
923 options:
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400924 - "ClusterIP"
925 - "NodePort"
926 - "LoadBalancer"
927 - "Rancher-Proxy"
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400928 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: ""
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400935 description: "NodePort port number for Longhorn UI. When unspecified, Longhorn selects a free port between 30000 and 32767."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400936 type: int
937 min: 30000
938 max: 32767
939 show_if: "service.ui.type=NodePort||service.ui.type=LoadBalancer"
940 label: UI Service NodePort number
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400941- variable: longhorn.default_resource
942 default: "false"
943 description: "Customize the default resource before installing Longhorn for the first time. This option will only work if the cluster hasn't installed Longhorn."
944 label: "Customize Default Resources"
945 type: boolean
946 show_subquestion_if: true
947 group: "Longhorn Default Resources"
948 subquestions:
949 - variable: defaultBackupStore.backupTarget
950 label: Backup Target
951 description: "Endpoint used to access the backupstore. (Options: \"NFS\", \"CIFS\", \"AWS\", \"GCP\", \"AZURE\")"
952 group: "Longhorn Default Resources"
953 type: string
954 default:
955 - variable: defaultBackupStore.backupTargetCredentialSecret
956 label: Backup Target Credential Secret
957 description: "Name of the Kubernetes secret associated with the backup target."
958 group: "Longhorn Default Resources"
959 type: string
960 default:
961 - variable: defaultBackupStore.backupstorePollInterval
962 label: Backupstore Poll Interval
963 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."
964 group: "Longhorn Default Resources"
965 type: int
966 min: 0
967 default: 300
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400968- variable: enablePSP
969 default: "false"
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400970 description: "Setting that allows you to enable pod security policies (PSPs) that allow privileged Longhorn pods to start. This setting applies only to clusters running Kubernetes 1.25 and earlier, and with the built-in Pod Security admission controller enabled."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400971 label: Pod Security Policy
972 type: boolean
973 group: "Other Settings"
974- variable: global.cattle.windowsCluster.enabled
975 default: "false"
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400976 description: "Setting that allows Longhorn to run on a Rancher Windows cluster."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400977 label: Rancher Windows Cluster
978 type: boolean
979 group: "Other Settings"
980- variable: networkPolicies.enabled
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400981 description: "Setting that allows you to enable network policies that control access to Longhorn pods. **Caution** The Rancher Proxy will work only if this feature is enabled and a custom NetworkPolicy is added."
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400982 group: "Other Settings"
983 label: Network Policies
984 default: "false"
985 type: boolean
986 subquestions:
987 - variable: networkPolicies.type
988 label: Network Policies for Ingress
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400989 description: "Distribution that determines the policy for allowing access for an ingress. (Options: \"k3s\", \"rke2\", \"rke1\")"
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +0400990 show_if: "networkPolicies.enabled=true&&ingress.enabled=true"
991 type: enum
992 default: "rke2"
993 options:
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +0400994 - "rke1"
995 - "rke2"
996 - "k3s"
997 - variable: defaultSettings.v2DataEngineGuaranteedInstanceManagerCPU
998 label: Guaranteed Instance Manager CPU for V2 Data Engine
999 description: 'Number of millicpu on each node to be reserved for each Instance Manager pod when the V2 Data Engine is enabled. The default value is \"1250\". **Caution** [1] Specifying a value of \"0\" disables CPU requests for Instance Manager pods. You must specify an integer between \"1000\" and \"8000\". [2] 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.'
1000 type: int
1001 min: 1000
1002 max: 8000
1003 default: 1250
1004 - variable: defaultSettings.v2DataEngineCPUMask
1005 label: CPU Mask for V2 Data Engine
1006 description: 'CPU cores on which the Storage Performance Development Kit (SPDK) target daemon should run. The SPDK target daemon is located in each Instance Manager pod. Ensure that the number of cores is less than or equal to the guaranteed Instance Manager CPUs for the V2 Data Engine. The default value is \"0x1\".'
1007 type: string
1008 default: "0x1"