blob: e61817d63ab99ab5990ff1b3bc19b6498008b883 [file] [log] [blame]
gio3e1b96b2026-07-21 18:52:35 +04001# Default values for longhorn.
2# This is a YAML-formatted file.
3# Declare variables to be passed into your templates.
4global:
5 # -- Global override for container image registry.
6 imageRegistry: ""
7 # -- Global override for image pull secrets for container registry.
8 imagePullSecrets: []
9 # -- Toleration for nodes allowed to run user-deployed components such as Longhorn Manager, Longhorn UI, and Longhorn Driver Deployer.
10 tolerations: []
11 # -- Node selector for nodes allowed to run user-deployed components such as Longhorn Manager, Longhorn UI, and Longhorn Driver Deployer.
12 nodeSelector: {}
13 cattle:
14 # -- Default system registry.
15 systemDefaultRegistry: ""
16 windowsCluster:
17 # -- Setting that allows Longhorn to run on a Rancher Windows cluster.
18 enabled: false
19 # -- Toleration for Linux nodes that can run user-deployed Longhorn components.
20 tolerations:
21 - key: "cattle.io/os"
22 value: "linux"
23 effect: "NoSchedule"
24 operator: "Equal"
25 # -- Node selector for Linux nodes that can run user-deployed Longhorn components.
26 nodeSelector:
27 kubernetes.io/os: "linux"
28 defaultSetting:
29 # -- Toleration for system-managed Longhorn components.
30 taintToleration: cattle.io/os=linux:NoSchedule
31 # -- Node selector for system-managed Longhorn components.
32 systemManagedComponentsNodeSelector: kubernetes.io/os:linux
33networkPolicies:
34 # -- Setting that allows you to enable network policies that control access to Longhorn pods.
35 enabled: false
36 # -- Distribution that determines the policy for allowing access for an ingress. (Options: "k3s", "rke2", "rke1")
37 type: "k3s"
38image:
39 longhorn:
40 engine:
41 # -- Registry for the Longhorn Engine image.
42 registry: ""
43 # -- Repository for the Longhorn Engine image.
44 repository: longhornio/longhorn-engine
45 # -- Tag for the Longhorn Engine image.
46 tag: v1.10.0
47 manager:
48 # -- Registry for the Longhorn Manager image.
49 registry: ""
50 # -- Repository for the Longhorn Manager image.
51 repository: longhornio/longhorn-manager
52 # -- Tag for the Longhorn Manager image.
53 tag: v1.10.0
54 ui:
55 # -- Registry for the Longhorn UI image.
56 registry: ""
57 # -- Repository for the Longhorn UI image.
58 repository: longhornio/longhorn-ui
59 # -- Tag for the Longhorn UI image.
60 tag: v1.10.0
61 instanceManager:
62 # -- Registry for the Longhorn Instance Manager image.
63 registry: ""
64 # -- Repository for the Longhorn Instance Manager image.
65 repository: longhornio/longhorn-instance-manager
66 # -- Tag for the Longhorn Instance Manager image.
67 tag: v1.10.0
68 shareManager:
69 # -- Registry for the Longhorn Share Manager image.
70 registry: ""
71 # -- Repository for the Longhorn Share Manager image.
72 repository: longhornio/longhorn-share-manager
73 # -- Tag for the Longhorn Share Manager image.
74 tag: v1.10.0
75 backingImageManager:
76 # -- Registry for the Backing Image Manager image. When unspecified, Longhorn uses the default value.
77 registry: ""
78 # -- Repository for the Backing Image Manager image. When unspecified, Longhorn uses the default value.
79 repository: longhornio/backing-image-manager
80 # -- Tag for the Backing Image Manager image. When unspecified, Longhorn uses the default value.
81 tag: v1.10.0
82 supportBundleKit:
83 # -- Registry for the Longhorn Support Bundle Manager image.
84 registry: ""
85 # -- Repository for the Longhorn Support Bundle Manager image.
86 repository: longhornio/support-bundle-kit
87 # -- Tag for the Longhorn Support Bundle Manager image.
88 tag: v0.0.69
89 csi:
90 attacher:
91 # -- Registry for the CSI attacher image. When unspecified, Longhorn uses the default value.
92 registry: ""
93 # -- Repository for the CSI attacher image. When unspecified, Longhorn uses the default value.
94 repository: longhornio/csi-attacher
95 # -- Tag for the CSI attacher image. When unspecified, Longhorn uses the default value.
96 tag: v4.9.0-20250826
97 provisioner:
98 # -- Registry for the CSI Provisioner image. When unspecified, Longhorn uses the default value.
99 registry: ""
100 # -- Repository for the CSI Provisioner image. When unspecified, Longhorn uses the default value.
101 repository: longhornio/csi-provisioner
102 # -- Tag for the CSI Provisioner image. When unspecified, Longhorn uses the default value.
103 tag: v5.3.0-20250826
104 nodeDriverRegistrar:
105 # -- Registry for the CSI Node Driver Registrar image. When unspecified, Longhorn uses the default value.
106 registry: ""
107 # -- Repository for the CSI Node Driver Registrar image. When unspecified, Longhorn uses the default value.
108 repository: longhornio/csi-node-driver-registrar
109 # -- Tag for the CSI Node Driver Registrar image. When unspecified, Longhorn uses the default value.
110 tag: v2.14.0-20250826
111 resizer:
112 # -- Registry for the CSI Resizer image. When unspecified, Longhorn uses the default value.
113 registry: ""
114 # -- Repository for the CSI Resizer image. When unspecified, Longhorn uses the default value.
115 repository: longhornio/csi-resizer
116 # -- Tag for the CSI Resizer image. When unspecified, Longhorn uses the default value.
117 tag: v1.14.0-20250826
118 snapshotter:
119 # -- Registry for the CSI Snapshotter image. When unspecified, Longhorn uses the default value.
120 registry: ""
121 # -- Repository for the CSI Snapshotter image. When unspecified, Longhorn uses the default value.
122 repository: longhornio/csi-snapshotter
123 # -- Tag for the CSI Snapshotter image. When unspecified, Longhorn uses the default value.
124 tag: v8.3.0-20250826
125 livenessProbe:
126 # -- Registry for the CSI liveness probe image. When unspecified, Longhorn uses the default value.
127 registry: ""
128 # -- Repository for the CSI liveness probe image. When unspecified, Longhorn uses the default value.
129 repository: longhornio/livenessprobe
130 # -- Tag for the CSI liveness probe image. When unspecified, Longhorn uses the default value.
131 tag: v2.16.0-20250826
132 openshift:
133 oauthProxy:
134 # -- Registry for the OAuth Proxy image. Specify the upstream image (for example, "quay.io/openshift/origin-oauth-proxy"). This setting applies only to OpenShift users.
135 registry: ""
136 # -- Repository for the OAuth Proxy image. Specify the upstream image (for example, "quay.io/openshift/origin-oauth-proxy"). This setting applies only to OpenShift users.
137 repository: ""
138 # -- Tag for the OAuth Proxy image. Specify OCP/OKD version 4.1 or later (including version 4.18, which is available at quay.io/openshift/origin-oauth-proxy:4.18). This setting applies only to OpenShift users.
139 tag: ""
140 # -- Image pull policy that applies to all user-deployed Longhorn components, such as Longhorn Manager, Longhorn driver, and Longhorn UI.
141 pullPolicy: IfNotPresent
142service:
143 ui:
144 # -- Service type for Longhorn UI. (Options: "ClusterIP", "NodePort", "LoadBalancer", "Rancher-Proxy")
145 type: ClusterIP
146 # -- NodePort port number for Longhorn UI. When unspecified, Longhorn selects a free port between 30000 and 32767.
147 nodePort: null
148 # -- Annotation for the Longhorn UI service.
149 annotations: {}
150 ## If you want to set annotations for the Longhorn UI service, delete the `{}` in the line above
151 ## and uncomment this example block
152 # annotation-key1: "annotation-value1"
153 # annotation-key2: "annotation-value2"
154 manager:
155 # -- Service type for Longhorn Manager.
156 type: ClusterIP
157 # -- NodePort port number for Longhorn Manager. When unspecified, Longhorn selects a free port between 30000 and 32767.
158 nodePort: ""
159persistence:
160 # -- Setting that allows you to specify the default Longhorn StorageClass.
161 defaultClass: true
162 # -- Filesystem type of the default Longhorn StorageClass.
163 defaultFsType: ext4
164 # -- mkfs parameters of the default Longhorn StorageClass.
165 defaultMkfsParams: ""
166 # -- Replica count of the default Longhorn StorageClass.
167 defaultClassReplicaCount: 3
168 # -- Data locality of the default Longhorn StorageClass. (Options: "disabled", "best-effort")
169 defaultDataLocality: disabled
170 # -- Reclaim policy that provides instructions for handling of a volume after its claim is released. (Options: "Retain", "Delete")
171 reclaimPolicy: Delete
172 # -- VolumeBindingMode controls when volume binding and dynamic provisioning should occur. (Options: "Immediate", "WaitForFirstConsumer") (Defaults to "Immediate")
173 volumeBindingMode: "Immediate"
174 # -- Setting that allows you to enable live migration of a Longhorn volume from one node to another.
175 migratable: false
176 # -- 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.
177 disableRevisionCounter: "true"
178 # -- Set NFS mount options for Longhorn StorageClass for RWX volumes
179 nfsOptions: ""
180 recurringJobSelector:
181 # -- Setting that allows you to enable the recurring job selector for a Longhorn StorageClass.
182 enable: false
183 # -- Recurring job selector for a Longhorn StorageClass. Ensure that quotes are used correctly when specifying job parameters. (Example: `[{"name":"backup", "isGroup":true}]`)
184 jobList: []
185 backingImage:
186 # -- Setting that allows you to use a backing image in a Longhorn StorageClass.
187 enable: false
188 # -- 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.
189 name: ~
190 # -- Data source type of a backing image used in a Longhorn StorageClass.
191 # If the backing image exists in the cluster, Longhorn uses this setting to verify the image.
192 # If the backing image does not exist, Longhorn creates one using the specified data source type.
193 dataSourceType: ~
194 # -- Data source parameters of a backing image used in a Longhorn StorageClass.
195 # You can specify a JSON string of a map. (Example: `'{\"url\":\"https://backing-image-example.s3-region.amazonaws.com/test-backing-image\"}'`)
196 dataSourceParameters: ~
197 # -- Expected SHA-512 checksum of a backing image used in a Longhorn StorageClass.
198 expectedChecksum: ~
199 defaultDiskSelector:
200 # -- Setting that allows you to enable the disk selector for the default Longhorn StorageClass.
201 enable: false
202 # -- Disk selector for the default Longhorn StorageClass. Longhorn uses only disks with the specified tags for storing volume data. (Examples: "nvme,sata")
203 selector: ""
204 defaultNodeSelector:
205 # -- Setting that allows you to enable the node selector for the default Longhorn StorageClass.
206 enable: false
207 # -- Node selector for the default Longhorn StorageClass. Longhorn uses only nodes with the specified tags for storing volume data. (Examples: "storage,fast")
208 selector: ""
209 # -- Setting that allows you to enable automatic snapshot removal during filesystem trim for a Longhorn StorageClass. (Options: "ignored", "enabled", "disabled")
210 unmapMarkSnapChainRemoved: ignored
211 # -- Setting that allows you to specify the data engine version for the default Longhorn StorageClass. (Options: "v1", "v2")
212 dataEngine: v1
213 # -- Setting that allows you to specify the backup target for the default Longhorn StorageClass.
214 backupTargetName: default
215preUpgradeChecker:
216 # -- Setting that allows Longhorn to perform pre-upgrade checks. Disable this setting when installing Longhorn using Argo CD or other GitOps solutions.
217 jobEnabled: true
218 # -- Setting that allows Longhorn to perform upgrade version checks after starting the Longhorn Manager DaemonSet Pods. Disabling this setting also disables `preUpgradeChecker.jobEnabled`. Longhorn recommends keeping this setting enabled.
219 upgradeVersionCheck: true
220csi:
221 # -- kubelet root directory. When unspecified, Longhorn uses the default value.
222 kubeletRootDir: ~
223 # -- Replica count of the CSI Attacher. When unspecified, Longhorn uses the default value ("3").
224 attacherReplicaCount: ~
225 # -- Replica count of the CSI Provisioner. When unspecified, Longhorn uses the default value ("3").
226 provisionerReplicaCount: ~
227 # -- Replica count of the CSI Resizer. When unspecified, Longhorn uses the default value ("3").
228 resizerReplicaCount: ~
229 # -- Replica count of the CSI Snapshotter. When unspecified, Longhorn uses the default value ("3").
230 snapshotterReplicaCount: ~
231defaultSettings:
232 # -- Setting that allows Longhorn to automatically attach a volume and create snapshots or backups when recurring jobs are run.
233 allowRecurringJobWhileVolumeDetached: ~
234 # -- 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.
235 createDefaultDiskLabeledNodes: ~
236 # -- Default path to use for storing data on a host. An absolute directory path indicates a filesystem-type disk used by the V1 Data Engine, while a path to a block device indicates a block-type disk used by the V2 Data Engine. The default value is "/var/lib/longhorn/".
237 defaultDataPath: ~
238 # -- 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.
239 defaultDataLocality: ~
240 # -- Setting that allows scheduling on nodes with healthy replicas of the same volume. This setting is disabled by default.
241 replicaSoftAntiAffinity: ~
242 # -- Setting that automatically rebalances replicas when an available node is discovered.
243 replicaAutoBalance: ~
244 # -- Percentage of storage that can be allocated relative to hard drive capacity. The default value is "100".
245 storageOverProvisioningPercentage: ~
246 # -- Percentage of minimum available disk capacity. When the minimum available capacity exceeds the total available capacity, the disk becomes unschedulable until more space is made available for use. The default value is "25".
247 storageMinimalAvailablePercentage: ~
248 # -- Percentage of disk space that is not allocated to the default disk on each new Longhorn node.
249 storageReservedPercentageForDefaultDisk: ~
250 # -- 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
251 upgradeChecker: ~
252 # -- The Upgrade Responder sends a notification whenever a new Longhorn version that you can upgrade to becomes available. The default value is https://longhorn-upgrade-responder.rancher.io/v1/checkupgrade.
253 upgradeResponderURL: ~
254 # -- 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 "{"v1":"3","v2":"3"}".
255 defaultReplicaCount: ~
256 # -- Default name of Longhorn static StorageClass. "storageClassName" is assigned to PVs and PVCs that are created for an existing Longhorn volume. "storageClassName" can also be used as a label, so it is possible to use a Longhorn StorageClass to bind a workload to an existing PV without creating a Kubernetes StorageClass object. "storageClassName" needs to be an existing StorageClass. The default value is "longhorn-static".
257 defaultLonghornStaticStorageClass: ~
258 # -- Number of minutes that Longhorn keeps a failed backup resource. When the value is "0", automatic deletion is disabled.
259 failedBackupTTL: ~
260 # -- Number of minutes that Longhorn allows for the backup execution. The default value is "1".
261 backupExecutionTimeout: ~
262 # -- Setting that restores recurring jobs from a backup volume on a backup target and creates recurring jobs if none exist during backup restoration.
263 restoreVolumeRecurringJobs: ~
264 # -- Maximum number of successful recurring backup and snapshot jobs to be retained. When the value is "0", a history of successful recurring jobs is not retained.
265 recurringSuccessfulJobsHistoryLimit: ~
266 # -- 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.
267 recurringFailedJobsHistoryLimit: ~
268 # -- Maximum number of snapshots or backups to be retained.
269 recurringJobMaxRetention: ~
270 # -- Maximum number of failed support bundles that can exist in the cluster. When the value is "0", Longhorn automatically purges all failed support bundles.
271 supportBundleFailedHistoryLimit: ~
272 # -- Taint or toleration for system-managed Longhorn components.
273 # Specify values using a semicolon-separated list in `kubectl taint` syntax (Example: key1=value1:effect; key2=value2:effect).
274 taintToleration: ~
275 # -- Node selector for system-managed Longhorn components.
276 systemManagedComponentsNodeSelector: ~
277 # -- PriorityClass for system-managed Longhorn components.
278 # This setting can help prevent Longhorn components from being evicted under Node Pressure.
279 # Notice 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`.
280 priorityClass: &defaultPriorityClassNameRef "longhorn-critical"
281 # -- 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.
282 autoSalvage: ~
283 # -- 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.
284 autoDeletePodWhenVolumeDetachedUnexpectedly: ~
285 # -- Setting that prevents Longhorn Manager from scheduling replicas on a cordoned Kubernetes node. This setting is enabled by default.
286 disableSchedulingOnCordonedNode: ~
287 # -- Setting that allows Longhorn to schedule new replicas of a volume to nodes in the same zone as existing healthy replicas. Nodes that do not belong to any zone are treated as existing in the zone that contains healthy replicas. When identifying zones, Longhorn relies on the label "topology.kubernetes.io/zone=<Zone name of the node>" in the Kubernetes node object.
288 replicaZoneSoftAntiAffinity: ~
289 # -- Setting that allows scheduling on disks with existing healthy replicas of the same volume. This setting is enabled by default.
290 replicaDiskSoftAntiAffinity: ~
291 # -- Policy that defines the action Longhorn takes when a volume is stuck with a StatefulSet or Deployment pod on a node that failed.
292 nodeDownPodDeletionPolicy: ~
293 # -- Policy that defines the action Longhorn takes when a node with the last healthy replica of a volume is drained.
294 nodeDrainPolicy: ~
295 # -- Setting that allows automatic detaching of manually-attached volumes when a node is cordoned.
296 detachManuallyAttachedVolumesWhenCordoned: ~
297 # -- Number of seconds that Longhorn waits before reusing existing data on a failed replica instead of creating a new replica of a degraded volume.
298 replicaReplenishmentWaitInterval: ~
299 # -- Maximum number of replicas that can be concurrently rebuilt on each node.
300 concurrentReplicaRebuildPerNodeLimit: ~
301 # -- 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.
302 concurrentVolumeBackupRestorePerNodeLimit: ~
303 # -- 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.
304 disableRevisionCounter: '{"v1":"true"}'
305 # -- 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.
306 systemManagedPodsImagePullPolicy: ~
307 # -- Setting that allows you to create and attach a volume without having all replicas scheduled at the time of creation.
308 allowVolumeCreationWithDegradedAvailability: ~
309 # -- Setting that allows Longhorn to automatically clean up the system-generated snapshot after replica rebuilding is completed.
310 autoCleanupSystemGeneratedSnapshot: ~
311 # -- Setting that allows Longhorn to automatically clean up the snapshot generated by a recurring backup job.
312 autoCleanupRecurringJobBackupSnapshot: ~
313 # -- 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.
314 concurrentAutomaticEngineUpgradePerNodeLimit: ~
315 # -- Number of minutes that Longhorn waits before cleaning up the backing image file when no replicas in the disk are using it.
316 backingImageCleanupWaitInterval: ~
317 # -- 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".
318 backingImageRecoveryWaitInterval: ~
319 # -- Percentage of the total allocatable CPU resources on each node to be reserved for each instance manager pod. The default value is {"v1":"12","v2":"12"}.
320 guaranteedInstanceManagerCPU: ~
321 # -- Setting that notifies Longhorn that the cluster is using the Kubernetes Cluster Autoscaler.
322 kubernetesClusterAutoscalerEnabled: ~
323 # -- Enables Longhorn to automatically delete orphaned resources and their associated data or processes (e.g., stale replicas). Orphaned resources on failed or unknown nodes are not automatically cleaned up.
324 # You need to specify the resource types to be deleted using a semicolon-separated list (e.g., `replica-data;instance`). Available items are: `replica-data`, `instance`.
325 orphanResourceAutoDeletion: ~
326 # -- Specifies the wait time, in seconds, before Longhorn automatically deletes an orphaned Custom Resource (CR) and its associated resources.
327 # Note that if a user manually deletes an orphaned CR, the deletion occurs immediately and does not respect this grace period.
328 orphanResourceAutoDeletionGracePeriod: ~
329 # -- Storage network for in-cluster traffic. When unspecified, Longhorn uses the Kubernetes cluster network.
330 storageNetwork: ~
331 # -- Flag that prevents accidental uninstallation of Longhorn.
332 deletingConfirmationFlag: ~
333 # -- Timeout between the Longhorn Engine and replicas. Specify a value between "8" and "30" seconds. The default value is "8".
334 engineReplicaTimeout: ~
335 # -- Setting that allows you to enable and disable snapshot hashing and data integrity checks.
336 snapshotDataIntegrity: ~
337 # -- Setting that allows disabling of snapshot hashing after snapshot creation to minimize impact on system performance.
338 snapshotDataIntegrityImmediateCheckAfterSnapshotCreation: ~
339 # -- Setting that defines when Longhorn checks the integrity of data in snapshot disk files. You must use the Unix cron expression format.
340 snapshotDataIntegrityCronjob: ~
341 # -- Setting that allows Longhorn to automatically mark the latest snapshot and its parent files as removed during a filesystem trim. Longhorn does not remove snapshots containing multiple child files.
342 removeSnapshotsDuringFilesystemTrim: ~
343 # -- 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".
344 fastReplicaRebuildEnabled: ~
345 # -- Number of seconds that an HTTP client waits for a response from a File Sync server before considering the connection to have failed.
346 replicaFileSyncHttpClientTimeout: ~
347 # -- Number of seconds that Longhorn allows for the completion of replica rebuilding and snapshot cloning operations.
348 longGRPCTimeOut: ~
349 # -- 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")
350 logLevel: ~
351 # -- Specifies the directory on the host where Longhorn stores log files for the instance manager pod. Currently, it is only used for instance manager pods in the v2 data engine.
352 logPath: ~
353 # -- Setting that allows you to specify a backup compression method.
354 backupCompressionMethod: ~
355 # -- Maximum number of worker threads that can concurrently run for each backup.
356 backupConcurrentLimit: ~
357 # -- Specifies the default backup block size, in MiB, used when creating a new volume. Supported values are 2 or 16.
358 defaultBackupBlockSize: ~
359 # -- Maximum number of worker threads that can concurrently run for each restore operation.
360 restoreConcurrentLimit: ~
361 # -- Setting that allows you to enable the V1 Data Engine.
362 v1DataEngine: ~
363 # -- 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.
364 v2DataEngine: ~
365 # -- Applies only to the V2 Data Engine. Enables hugepages for the Storage Performance Development Kit (SPDK) target daemon. If disabled, legacy memory is used. Allocation size is set via the Data Engine Memory Size setting.
366 dataEngineHugepageEnabled: ~
367 # -- Applies only to the V2 Data Engine. Specifies the hugepage size, in MiB, for the Storage Performance Development Kit (SPDK) target daemon. The default value is "{"v2":"2048"}"
368 dataEngineMemorySize: ~
369 # -- Applies only to the V2 Data Engine. Specifies the CPU cores on which the Storage Performance Development Kit (SPDK) target daemon runs. The daemon is deployed in each Instance Manager pod. Ensure that the number of assigned cores does not exceed the guaranteed Instance Manager CPUs for the V2 Data Engine. The default value is "{"v2":"0x1"}".
370 dataEngineCPUMask: ~
371 # -- This setting specifies the default write bandwidth limit (in megabytes per second) for volume replica rebuilding when using the v2 data engine (SPDK). If this value is set to 0, there will be no write bandwidth limitation. Individual volumes can override this setting by specifying their own rebuilding bandwidth limit.
372 replicaRebuildingBandwidthLimit: ~
373 # -- In seconds. The setting specifies the timeout for the instance manager pod liveness probe. The default value is 10 seconds.
374 instanceManagerPodLivenessProbeTimeout: ~
375 # -- Setting that allows scheduling of empty node selector volumes to any node.
376 allowEmptyNodeSelectorVolume: ~
377 # -- Setting that allows scheduling of empty disk selector volumes to any disk.
378 allowEmptyDiskSelectorVolume: ~
379 # -- 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.
380 allowCollectingLonghornUsageMetrics: ~
381 # -- Setting that temporarily prevents all attempts to purge volume snapshots.
382 disableSnapshotPurge: ~
383 # -- Maximum snapshot count for a volume. The value should be between 2 to 250
384 snapshotMaxCount: ~
385 # -- Applies only to the V2 Data Engine. Specifies the log level for the Storage Performance Development Kit (SPDK) target daemon. Supported values are: Error, Warning, Notice, Info, and Debug. The default is Notice.
386 dataEngineLogLevel: ~
387 # -- Applies only to the V2 Data Engine. Specifies the log flags for the Storage Performance Development Kit (SPDK) target daemon.
388 dataEngineLogFlags: ~
389 # -- Setting that freezes the filesystem on the root partition before a snapshot is created.
390 freezeFilesystemForSnapshot: ~
391 # -- Setting that automatically cleans up the snapshot when the backup is deleted.
392 autoCleanupSnapshotWhenDeleteBackup: ~
393 # -- Setting that automatically cleans up the snapshot after the on-demand backup is completed.
394 autoCleanupSnapshotAfterOnDemandBackupCompleted: ~
395 # -- Setting that allows Longhorn to detect node failure and immediately migrate affected RWX volumes.
396 rwxVolumeFastFailover: ~
397 # -- Enables automatic rebuilding of degraded replicas while the volume is detached. This setting only takes effect if the individual volume setting is set to `ignored` or `enabled`.
398 offlineReplicaRebuilding: ~
399# -- Setting that allows you to update the default backupstore.
400defaultBackupStore:
401 # -- Endpoint used to access the default backupstore. (Options: "NFS", "CIFS", "AWS", "GCP", "AZURE")
402 backupTarget: ~
403 # -- Name of the Kubernetes secret associated with the default backup target.
404 backupTargetCredentialSecret: ~
405 # -- Number of seconds that Longhorn waits before checking the default backupstore for new backups. The default value is "300". When the value is "0", polling is disabled.
406 pollInterval: ~
407privateRegistry:
408 # -- Set to `true` to automatically create a new private registry secret.
409 createSecret: ~
410 # -- URL of a private registry. When unspecified, Longhorn uses the default system registry.
411 registryUrl: ~
412 # -- User account used for authenticating with a private registry.
413 registryUser: ~
414 # -- Password for authenticating with a private registry.
415 registryPasswd: ~
416 # -- 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.
417 registrySecret: ~
418longhornManager:
419 log:
420 # -- Format of Longhorn Manager logs. (Options: "plain", "json")
421 format: plain
422 # -- PriorityClass for Longhorn Manager.
423 priorityClass: *defaultPriorityClassNameRef
424 # -- Toleration for Longhorn Manager on nodes allowed to run Longhorn components.
425 tolerations: []
426 ## If you want to set tolerations for Longhorn Manager DaemonSet, delete the `[]` in the line above
427 ## and uncomment this example block
428 # - key: "key"
429 # operator: "Equal"
430 # value: "value"
431 # effect: "NoSchedule"
432 # -- Node selector for Longhorn Manager. Specify the nodes allowed to run Longhorn Manager.
433 nodeSelector: {}
434 ## If you want to set node selector for Longhorn Manager DaemonSet, delete the `{}` in the line above
435 ## and uncomment this example block
436 # label-key1: "label-value1"
437 # label-key2: "label-value2"
438 # -- Annotation for the Longhorn Manager service.
439 serviceAnnotations: {}
440 ## If you want to set annotations for the Longhorn Manager service, delete the `{}` in the line above
441 ## and uncomment this example block
442 # annotation-key1: "annotation-value1"
443 # annotation-key2: "annotation-value2"
444longhornDriver:
445 log:
446 # -- Format of longhorn-driver logs. (Options: "plain", "json")
447 format: plain
448 # -- PriorityClass for Longhorn Driver.
449 priorityClass: *defaultPriorityClassNameRef
450 # -- Toleration for Longhorn Driver on nodes allowed to run Longhorn components.
451 tolerations: []
452 ## If you want to set tolerations for Longhorn Driver Deployer Deployment, delete the `[]` in the line above
453 ## and uncomment this example block
454 # - key: "key"
455 # operator: "Equal"
456 # value: "value"
457 # effect: "NoSchedule"
458 # -- Node selector for Longhorn Driver. Specify the nodes allowed to run Longhorn Driver.
459 nodeSelector: {}
460 ## If you want to set node selector for Longhorn Driver Deployer Deployment, delete the `{}` in the line above
461 ## and uncomment this example block
462 # label-key1: "label-value1"
463 # label-key2: "label-value2"
464longhornUI:
465 # -- Replica count for Longhorn UI.
466 replicas: 2
467 # -- PriorityClass for Longhorn UI.
468 priorityClass: *defaultPriorityClassNameRef
469 # -- Affinity for Longhorn UI pods. Specify the affinity you want to use for Longhorn UI.
470 affinity:
471 podAntiAffinity:
472 preferredDuringSchedulingIgnoredDuringExecution:
473 - weight: 1
474 podAffinityTerm:
475 labelSelector:
476 matchExpressions:
477 - key: app
478 operator: In
479 values:
480 - longhorn-ui
481 topologyKey: kubernetes.io/hostname
482 # -- Toleration for Longhorn UI on nodes allowed to run Longhorn components.
483 tolerations: []
484 ## If you want to set tolerations for Longhorn UI Deployment, delete the `[]` in the line above
485 ## and uncomment this example block
486 # - key: "key"
487 # operator: "Equal"
488 # value: "value"
489 # effect: "NoSchedule"
490 # -- Node selector for Longhorn UI. Specify the nodes allowed to run Longhorn UI.
491 nodeSelector: {}
492 ## If you want to set node selector for Longhorn UI Deployment, delete the `{}` in the line above
493 ## and uncomment this example block
494 # label-key1: "label-value1"
495 # label-key2: "label-value2"
496ingress:
497 # -- Setting that allows Longhorn to generate ingress records for the Longhorn UI service.
498 enabled: false
499 # -- IngressClass resource that contains ingress configuration, including the name of the Ingress controller.
500 # ingressClassName can replace the kubernetes.io/ingress.class annotation used in earlier Kubernetes releases.
501 ingressClassName: ~
502 # -- Hostname of the Layer 7 load balancer.
503 host: sslip.io
504 # -- Setting that allows you to enable TLS on ingress records.
505 tls: false
506 # -- Setting that allows you to enable secure connections to the Longhorn UI service via port 443.
507 secureBackends: false
508 # -- TLS secret that contains the private key and certificate to be used for TLS. This setting applies only when TLS is enabled on ingress records.
509 tlsSecret: longhorn.local-tls
510 # -- Default ingress path. You can access the Longhorn UI by following the full ingress path {{host}}+{{path}}.
511 path: /
512 # -- Ingress path type. To maintain backward compatibility, the default value is "ImplementationSpecific".
513 pathType: ImplementationSpecific
514 ## If you're using kube-lego, you will want to add:
515 ## kubernetes.io/tls-acme: true
516 ##
517 ## For a full list of possible ingress annotations, please see
518 ## ref: https://github.com/kubernetes/ingress-nginx/blob/master/docs/annotations.md
519 ##
520 ## If tls is set to true, annotation ingress.kubernetes.io/secure-backends: "true" will automatically be set
521 # -- Ingress annotations in the form of key-value pairs.
522 annotations:
523 # kubernetes.io/ingress.class: nginx
524 # kubernetes.io/tls-acme: true
525
526 # -- Secret that contains a TLS private key and certificate. Use secrets if you want to use your own certificates to secure ingresses.
527 secrets:
528 ## If you're providing your own certificates, please use this to add the certificates as secrets
529 ## key and certificate should start with -----BEGIN CERTIFICATE----- or
530 ## -----BEGIN RSA PRIVATE KEY-----
531 ##
532 ## name should line up with a tlsSecret set further up
533 ## If you're using kube-lego, this is unneeded, as it will create the secret for you if it is not set
534 ##
535 ## It is also possible to create and manage the certificates outside of this helm chart
536 ## Please see README.md for more information
537 # - name: longhorn.local-tls
538 # key:
539 # certificate:
540# -- 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.
541enablePSP: false
542# -- Specify override namespace, specifically this is useful for using longhorn as sub-chart and its release namespace is not the `longhorn-system`.
543namespaceOverride: ""
544# -- Annotation for the Longhorn Manager DaemonSet pods. This setting is optional.
545annotations: {}
546serviceAccount:
547 # -- Annotations to add to the service account
548 annotations: {}
549metrics:
550 serviceMonitor:
551 # -- Setting that allows the creation of a Prometheus ServiceMonitor resource for Longhorn Manager components.
552 enabled: false
553 # -- Additional labels for the Prometheus ServiceMonitor resource.
554 additionalLabels: {}
555 # -- Annotations for the Prometheus ServiceMonitor resource.
556 annotations: {}
557 # -- Interval at which Prometheus scrapes the metrics from the target.
558 interval: ""
559 # -- Timeout after which Prometheus considers the scrape to be failed.
560 scrapeTimeout: ""
561 # -- Configures the relabeling rules to apply the target’s metadata labels. See the [Prometheus Operator
562 # documentation](https://prometheus-operator.dev/docs/api-reference/api/#monitoring.coreos.com/v1.Endpoint) for
563 # formatting details.
564 relabelings: []
565 # -- Configures the relabeling rules to apply to the samples before ingestion. See the [Prometheus Operator
566 # documentation](https://prometheus-operator.dev/docs/api-reference/api/#monitoring.coreos.com/v1.Endpoint) for
567 # formatting details.
568 metricRelabelings: []
569## openshift settings
570openshift:
571 # -- Setting that allows Longhorn to integrate with OpenShift.
572 enabled: false
573 ui:
574 # -- Route for connections between Longhorn and the OpenShift web console.
575 route: "longhorn-ui"
576 # -- Port for accessing the OpenShift web console.
577 port: 443
578 # -- Port for proxy that provides access to the OpenShift web console.
579 proxy: 8443
580# -- Setting that allows Longhorn to generate code coverage profiles.
581enableGoCoverDir: false
582# -- Add extra objects manifests
583extraObjects: []