blob: 5c2a655a7217fa040afafa7b0925233036720da9 [file] [log] [blame]
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +04001# Default values for longhorn.
2# This is a YAML-formatted file.
3# Declare variables to be passed into your templates.
4global:
gio16bb6382025-05-21 18:42:40 +04005 # -- Toleration for nodes allowed to run user-deployed components such as Longhorn Manager, Longhorn UI, and Longhorn Driver Deployer.
6 tolerations: []
7 # -- Node selector for nodes allowed to run user-deployed components such as Longhorn Manager, Longhorn UI, and Longhorn Driver Deployer.
8 nodeSelector: {}
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +04009 cattle:
gio16bb6382025-05-21 18:42:40 +040010 # -- Default system registry.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040011 systemDefaultRegistry: ""
12 windowsCluster:
gio16bb6382025-05-21 18:42:40 +040013 # -- Setting that allows Longhorn to run on a Rancher Windows cluster.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040014 enabled: false
gio16bb6382025-05-21 18:42:40 +040015 # -- Toleration for Linux nodes that can run user-deployed Longhorn components.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040016 tolerations:
17 - key: "cattle.io/os"
18 value: "linux"
19 effect: "NoSchedule"
20 operator: "Equal"
gio16bb6382025-05-21 18:42:40 +040021 # -- Node selector for Linux nodes that can run user-deployed Longhorn components.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040022 nodeSelector:
23 kubernetes.io/os: "linux"
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040024 defaultSetting:
gio16bb6382025-05-21 18:42:40 +040025 # -- Toleration for system-managed Longhorn components.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040026 taintToleration: cattle.io/os=linux:NoSchedule
gio16bb6382025-05-21 18:42:40 +040027 # -- Node selector for system-managed Longhorn components.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040028 systemManagedComponentsNodeSelector: kubernetes.io/os:linux
29
Giorgi Lekveishvili285ab622023-11-22 13:50:45 +040030networkPolicies:
gio16bb6382025-05-21 18:42:40 +040031 # -- Setting that allows you to enable network policies that control access to Longhorn pods.
Giorgi Lekveishvili285ab622023-11-22 13:50:45 +040032 enabled: false
gio16bb6382025-05-21 18:42:40 +040033 # -- Distribution that determines the policy for allowing access for an ingress. (Options: "k3s", "rke2", "rke1")
Giorgi Lekveishvili285ab622023-11-22 13:50:45 +040034 type: "k3s"
35
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040036image:
37 longhorn:
38 engine:
gio16bb6382025-05-21 18:42:40 +040039 # -- Repository for the Longhorn Engine image.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040040 repository: longhornio/longhorn-engine
gio16bb6382025-05-21 18:42:40 +040041 # -- Specify Longhorn engine image tag
42 tag: v1.6.4
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040043 manager:
gio16bb6382025-05-21 18:42:40 +040044 # -- Repository for the Longhorn Manager image.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040045 repository: longhornio/longhorn-manager
gio16bb6382025-05-21 18:42:40 +040046 # -- Specify Longhorn manager image tag
47 tag: v1.6.4
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040048 ui:
gio16bb6382025-05-21 18:42:40 +040049 # -- Repository for the Longhorn UI image.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040050 repository: longhornio/longhorn-ui
gio16bb6382025-05-21 18:42:40 +040051 # -- Specify Longhorn ui image tag
52 tag: v1.6.4
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040053 instanceManager:
gio16bb6382025-05-21 18:42:40 +040054 # -- Repository for the Longhorn Instance Manager image.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040055 repository: longhornio/longhorn-instance-manager
gio16bb6382025-05-21 18:42:40 +040056 # -- Specify Longhorn instance manager image tag
57 tag: v1.6.4
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040058 shareManager:
gio16bb6382025-05-21 18:42:40 +040059 # -- Repository for the Longhorn Share Manager image.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040060 repository: longhornio/longhorn-share-manager
gio16bb6382025-05-21 18:42:40 +040061 # -- Specify Longhorn share manager image tag
62 tag: v1.6.4
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040063 backingImageManager:
gio16bb6382025-05-21 18:42:40 +040064 # -- Repository for the Backing Image Manager image. When unspecified, Longhorn uses the default value.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040065 repository: longhornio/backing-image-manager
gio16bb6382025-05-21 18:42:40 +040066 # -- Specify Longhorn backing image manager image tag
67 tag: v1.6.4
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040068 supportBundleKit:
gio16bb6382025-05-21 18:42:40 +040069 # -- Repository for the Longhorn Support Bundle Manager image.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040070 repository: longhornio/support-bundle-kit
gio16bb6382025-05-21 18:42:40 +040071 # -- Tag for the Longhorn Support Bundle Manager image.
72 tag: v0.0.48
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040073 csi:
74 attacher:
gio16bb6382025-05-21 18:42:40 +040075 # -- Repository for the CSI attacher image. When unspecified, Longhorn uses the default value.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040076 repository: longhornio/csi-attacher
gio16bb6382025-05-21 18:42:40 +040077 # -- Tag for the CSI attacher image. When unspecified, Longhorn uses the default value.
78 tag: v4.7.0-20241219
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040079 provisioner:
gio16bb6382025-05-21 18:42:40 +040080 # -- Repository for the CSI Provisioner image. When unspecified, Longhorn uses the default value.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040081 repository: longhornio/csi-provisioner
gio16bb6382025-05-21 18:42:40 +040082 # -- Tag for the CSI Provisioner image. When unspecified, Longhorn uses the default value.
83 tag: v3.6.4-20241219
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040084 nodeDriverRegistrar:
gio16bb6382025-05-21 18:42:40 +040085 # -- Repository for the CSI Node Driver Registrar image. When unspecified, Longhorn uses the default value.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040086 repository: longhornio/csi-node-driver-registrar
gio16bb6382025-05-21 18:42:40 +040087 # -- Tag for the CSI Node Driver Registrar image. When unspecified, Longhorn uses the default value.
88 tag: v2.12.0-20241219
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040089 resizer:
gio16bb6382025-05-21 18:42:40 +040090 # -- Repository for the CSI Resizer image. When unspecified, Longhorn uses the default value.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040091 repository: longhornio/csi-resizer
gio16bb6382025-05-21 18:42:40 +040092 # -- Tag for the CSI Resizer image. When unspecified, Longhorn uses the default value.
93 tag: v1.12.0-20241219
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040094 snapshotter:
gio16bb6382025-05-21 18:42:40 +040095 # -- Repository for the CSI Snapshotter image. When unspecified, Longhorn uses the default value.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040096 repository: longhornio/csi-snapshotter
gio16bb6382025-05-21 18:42:40 +040097 # -- Tag for the CSI Snapshotter image. When unspecified, Longhorn uses the default value.
98 tag: v6.3.4-20241219
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +040099 livenessProbe:
gio16bb6382025-05-21 18:42:40 +0400100 # -- Repository for the CSI liveness probe image. When unspecified, Longhorn uses the default value.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400101 repository: longhornio/livenessprobe
gio16bb6382025-05-21 18:42:40 +0400102 # -- Tag for the CSI liveness probe image. When unspecified, Longhorn uses the default value.
103 tag: v2.14.0-20241219
104 openshift:
105 oauthProxy:
106 # -- 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.
107 repository: ""
108 # -- Tag for the OAuth Proxy image. Specify OCP/OKD version 4.1 or later (including version 4.15, which is available at quay.io/openshift/origin-oauth-proxy:4.15). This setting applies only to OpenShift users.
109 tag: ""
110 # -- Image pull policy that applies to all user-deployed Longhorn components, such as Longhorn Manager, Longhorn driver, and Longhorn UI.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400111 pullPolicy: IfNotPresent
112
113service:
114 ui:
gio16bb6382025-05-21 18:42:40 +0400115 # -- Service type for Longhorn UI. (Options: "ClusterIP", "NodePort", "LoadBalancer", "Rancher-Proxy")
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400116 type: ClusterIP
gio16bb6382025-05-21 18:42:40 +0400117 # -- NodePort port number for Longhorn UI. When unspecified, Longhorn selects a free port between 30000 and 32767.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400118 nodePort: null
119 manager:
gio16bb6382025-05-21 18:42:40 +0400120 # -- Service type for Longhorn Manager.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400121 type: ClusterIP
gio16bb6382025-05-21 18:42:40 +0400122 # -- NodePort port number for Longhorn Manager. When unspecified, Longhorn selects a free port between 30000 and 32767.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400123 nodePort: ""
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400124
125persistence:
gio16bb6382025-05-21 18:42:40 +0400126 # -- Setting that allows you to specify the default Longhorn StorageClass.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400127 defaultClass: true
gio16bb6382025-05-21 18:42:40 +0400128 # -- Filesystem type of the default Longhorn StorageClass.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400129 defaultFsType: ext4
gio16bb6382025-05-21 18:42:40 +0400130 # -- mkfs parameters of the default Longhorn StorageClass.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400131 defaultMkfsParams: ""
gio16bb6382025-05-21 18:42:40 +0400132 # -- Replica count of the default Longhorn StorageClass.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400133 defaultClassReplicaCount: 3
gio16bb6382025-05-21 18:42:40 +0400134 # -- Data locality of the default Longhorn StorageClass. (Options: "disabled", "best-effort")
135 defaultDataLocality: disabled
136 # -- Reclaim policy that provides instructions for handling of a volume after its claim is released. (Options: "Retain", "Delete")
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400137 reclaimPolicy: Delete
gio16bb6382025-05-21 18:42:40 +0400138 # -- Setting that allows you to enable live migration of a Longhorn volume from one node to another.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400139 migratable: false
gio16bb6382025-05-21 18:42:40 +0400140 # -- Set NFS mount options for Longhorn StorageClass for RWX volumes
141 nfsOptions: ""
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400142 recurringJobSelector:
gio16bb6382025-05-21 18:42:40 +0400143 # -- Setting that allows you to enable the recurring job selector for a Longhorn StorageClass.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400144 enable: false
gio16bb6382025-05-21 18:42:40 +0400145 # -- Recurring job selector for a Longhorn StorageClass. Ensure that quotes are used correctly when specifying job parameters. (Example: `[{"name":"backup", "isGroup":true}]`)
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400146 jobList: []
147 backingImage:
gio16bb6382025-05-21 18:42:40 +0400148 # -- Setting that allows you to use a backing image in a Longhorn StorageClass.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400149 enable: false
gio16bb6382025-05-21 18:42:40 +0400150 # -- Backing image to be used for creating and restoring volumes in a Longhorn StorageClass. When no backing images are available, specify the data source type and parameters that Longhorn can use to create a backing image.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400151 name: ~
gio16bb6382025-05-21 18:42:40 +0400152 # -- Data source type of a backing image used in a Longhorn StorageClass.
153 # If the backing image exists in the cluster, Longhorn uses this setting to verify the image.
154 # If the backing image does not exist, Longhorn creates one using the specified data source type.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400155 dataSourceType: ~
gio16bb6382025-05-21 18:42:40 +0400156 # -- Data source parameters of a backing image used in a Longhorn StorageClass.
157 # You can specify a JSON string of a map. (Example: `'{\"url\":\"https://backing-image-example.s3-region.amazonaws.com/test-backing-image\"}'`)
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400158 dataSourceParameters: ~
gio16bb6382025-05-21 18:42:40 +0400159 # -- Expected SHA-512 checksum of a backing image used in a Longhorn StorageClass.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400160 expectedChecksum: ~
161 defaultNodeSelector:
gio16bb6382025-05-21 18:42:40 +0400162 # -- Setting that allows you to enable the node selector for the default Longhorn StorageClass.
163 enable: false
164 # -- Node selector for the default Longhorn StorageClass. Longhorn uses only nodes with the specified tags for storing volume data. (Examples: "storage,fast")
Giorgi Lekveishvili285ab622023-11-22 13:50:45 +0400165 selector: ""
gio16bb6382025-05-21 18:42:40 +0400166 # -- Setting that allows you to enable automatic snapshot removal during filesystem trim for a Longhorn StorageClass. (Options: "ignored", "enabled", "disabled")
167 removeSnapshotsDuringFilesystemTrim: ignored
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400168
gio16bb6382025-05-21 18:42:40 +0400169preUpgradeChecker:
170 # -- Setting that allows Longhorn to perform pre-upgrade checks. Disable this setting when installing Longhorn using Argo CD or other GitOps solutions.
171 jobEnabled: true
172 # -- 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.
173 upgradeVersionCheck: true
Giorgi Lekveishvili285ab622023-11-22 13:50:45 +0400174
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400175csi:
gio16bb6382025-05-21 18:42:40 +0400176 # -- kubelet root directory. When unspecified, Longhorn uses the default value.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400177 kubeletRootDir: ~
gio16bb6382025-05-21 18:42:40 +0400178 # -- Replica count of the CSI Attacher. When unspecified, Longhorn uses the default value ("3").
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400179 attacherReplicaCount: ~
gio16bb6382025-05-21 18:42:40 +0400180 # -- Replica count of the CSI Provisioner. When unspecified, Longhorn uses the default value ("3").
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400181 provisionerReplicaCount: ~
gio16bb6382025-05-21 18:42:40 +0400182 # -- Replica count of the CSI Resizer. When unspecified, Longhorn uses the default value ("3").
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400183 resizerReplicaCount: ~
gio16bb6382025-05-21 18:42:40 +0400184 # -- Replica count of the CSI Snapshotter. When unspecified, Longhorn uses the default value ("3").
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400185 snapshotterReplicaCount: ~
186
187defaultSettings:
gio16bb6382025-05-21 18:42:40 +0400188 # -- Endpoint used to access the backupstore. (Options: "NFS", "CIFS", "AWS", "GCP", "AZURE")
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400189 backupTarget: ~
gio16bb6382025-05-21 18:42:40 +0400190 # -- Name of the Kubernetes secret associated with the backup target.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400191 backupTargetCredentialSecret: ~
gio16bb6382025-05-21 18:42:40 +0400192 # -- Setting that allows Longhorn to automatically attach a volume and create snapshots or backups when recurring jobs are run.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400193 allowRecurringJobWhileVolumeDetached: ~
gio16bb6382025-05-21 18:42:40 +0400194 # -- Setting that allows Longhorn to automatically create a default disk only on nodes with the label "node.longhorn.io/create-default-disk=true" (if no other disks exist). When this setting is disabled, Longhorn creates a default disk on each node that is added to the cluster.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400195 createDefaultDiskLabeledNodes: ~
gio16bb6382025-05-21 18:42:40 +0400196 # -- Default path for storing data on a host. The default value is "/var/lib/longhorn/".
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400197 defaultDataPath: ~
gio16bb6382025-05-21 18:42:40 +0400198 # -- Default data locality. A Longhorn volume has data locality if a local replica of the volume exists on the same node as the pod that is using the volume.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400199 defaultDataLocality: ~
gio16bb6382025-05-21 18:42:40 +0400200 # -- Setting that allows scheduling on nodes with healthy replicas of the same volume. This setting is disabled by default.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400201 replicaSoftAntiAffinity: ~
gio16bb6382025-05-21 18:42:40 +0400202 # -- Setting that automatically rebalances replicas when an available node is discovered.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400203 replicaAutoBalance: ~
gio16bb6382025-05-21 18:42:40 +0400204 # -- Percentage of storage that can be allocated relative to hard drive capacity. The default value is "100".
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400205 storageOverProvisioningPercentage: ~
gio16bb6382025-05-21 18:42:40 +0400206 # -- 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".
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400207 storageMinimalAvailablePercentage: ~
gio16bb6382025-05-21 18:42:40 +0400208 # -- Percentage of disk space that is not allocated to the default disk on each new Longhorn node.
Giorgi Lekveishvili285ab622023-11-22 13:50:45 +0400209 storageReservedPercentageForDefaultDisk: ~
gio16bb6382025-05-21 18:42:40 +0400210 # -- Upgrade Checker that periodically checks for new Longhorn versions. When a new version is available, a notification appears on the Longhorn UI. This setting is enabled by default
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400211 upgradeChecker: ~
gio16bb6382025-05-21 18:42:40 +0400212 # -- Default number of replicas for volumes created using the Longhorn UI. For Kubernetes configuration, modify the `numberOfReplicas` field in the StorageClass. The default value is "3".
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400213 defaultReplicaCount: ~
gio16bb6382025-05-21 18:42:40 +0400214 # -- Default Longhorn StorageClass. "storageClassName" is assigned to PVs and PVCs that are created for an existing Longhorn volume. "storageClassName" can also be used as a label, so it is possible to use a Longhorn StorageClass to bind a workload to an existing PV without creating a Kubernetes StorageClass object. The default value is "longhorn-static".
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400215 defaultLonghornStaticStorageClass: ~
gio16bb6382025-05-21 18:42:40 +0400216 # -- Number of seconds that Longhorn waits before checking the backupstore for new backups. The default value is "300". When the value is "0", polling is disabled.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400217 backupstorePollInterval: ~
gio16bb6382025-05-21 18:42:40 +0400218 # -- Number of minutes that Longhorn keeps a failed backup resource. When the value is "0", automatic deletion is disabled.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400219 failedBackupTTL: ~
gio16bb6382025-05-21 18:42:40 +0400220 # -- Setting that restores recurring jobs from a backup volume on a backup target and creates recurring jobs if none exist during backup restoration.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400221 restoreVolumeRecurringJobs: ~
gio16bb6382025-05-21 18:42:40 +0400222 # -- 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.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400223 recurringSuccessfulJobsHistoryLimit: ~
gio16bb6382025-05-21 18:42:40 +0400224 # -- Maximum number of failed recurring backup and snapshot jobs to be retained. When the value is "0", a history of failed recurring jobs is not retained.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400225 recurringFailedJobsHistoryLimit: ~
gio16bb6382025-05-21 18:42:40 +0400226 # -- Maximum number of snapshots or backups to be retained.
227 recurringJobMaxRetention: ~
228 # -- Maximum number of failed support bundles that can exist in the cluster. When the value is "0", Longhorn automatically purges all failed support bundles.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400229 supportBundleFailedHistoryLimit: ~
gio16bb6382025-05-21 18:42:40 +0400230 # -- Taint or toleration for system-managed Longhorn components.
231 # Specify values using a semicolon-separated list in `kubectl taint` syntax (Example: key1=value1:effect; key2=value2:effect).
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400232 taintToleration: ~
gio16bb6382025-05-21 18:42:40 +0400233 # -- Node selector for system-managed Longhorn components.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400234 systemManagedComponentsNodeSelector: ~
gio16bb6382025-05-21 18:42:40 +0400235 # -- PriorityClass for system-managed Longhorn components.
236 # This setting can help prevent Longhorn components from being evicted under Node Pressure.
237 # 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`.
238 priorityClass: &defaultPriorityClassNameRef "longhorn-critical"
239 # -- Setting that allows Longhorn to automatically salvage volumes when all replicas become faulty (for example, when the network connection is interrupted). Longhorn determines which replicas are usable and then uses these replicas for the volume. This setting is enabled by default.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400240 autoSalvage: ~
gio16bb6382025-05-21 18:42:40 +0400241 # -- Setting that allows Longhorn to automatically delete a workload pod that is managed by a controller (for example, daemonset) whenever a Longhorn volume is detached unexpectedly (for example, during Kubernetes upgrades). After deletion, the controller restarts the pod and then Kubernetes handles volume reattachment and remounting.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400242 autoDeletePodWhenVolumeDetachedUnexpectedly: ~
gio16bb6382025-05-21 18:42:40 +0400243 # -- Setting that prevents Longhorn Manager from scheduling replicas on a cordoned Kubernetes node. This setting is enabled by default.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400244 disableSchedulingOnCordonedNode: ~
gio16bb6382025-05-21 18:42:40 +0400245 # -- 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.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400246 replicaZoneSoftAntiAffinity: ~
gio16bb6382025-05-21 18:42:40 +0400247 # -- Setting that allows scheduling on disks with existing healthy replicas of the same volume. This setting is enabled by default.
248 replicaDiskSoftAntiAffinity: ~
249 # -- Policy that defines the action Longhorn takes when a volume is stuck with a StatefulSet or Deployment pod on a node that failed.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400250 nodeDownPodDeletionPolicy: ~
gio16bb6382025-05-21 18:42:40 +0400251 # -- Policy that defines the action Longhorn takes when a node with the last healthy replica of a volume is drained.
Giorgi Lekveishvili285ab622023-11-22 13:50:45 +0400252 nodeDrainPolicy: ~
gio16bb6382025-05-21 18:42:40 +0400253 # -- Setting that allows automatic detaching of manually-attached volumes when a node is cordoned.
254 detachManuallyAttachedVolumesWhenCordoned: ~
255 # -- Number of seconds that Longhorn waits before reusing existing data on a failed replica instead of creating a new replica of a degraded volume.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400256 replicaReplenishmentWaitInterval: ~
gio16bb6382025-05-21 18:42:40 +0400257 # -- Maximum number of replicas that can be concurrently rebuilt on each node.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400258 concurrentReplicaRebuildPerNodeLimit: ~
gio16bb6382025-05-21 18:42:40 +0400259 # -- Maximum number of volumes that can be concurrently restored on each node using a backup. When the value is "0", restoration of volumes using a backup is disabled.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400260 concurrentVolumeBackupRestorePerNodeLimit: ~
gio16bb6382025-05-21 18:42:40 +0400261 # -- Setting that disables the revision counter and thereby prevents Longhorn from tracking all write operations to a volume. When salvaging a volume, Longhorn uses properties of the "volume-head-xxx.img" file (the last file size and the last time the file was modified) to select the replica to be used for volume recovery. This setting applies only to volumes created using the Longhorn UI.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400262 disableRevisionCounter: ~
gio16bb6382025-05-21 18:42:40 +0400263 # -- Image pull policy for system-managed pods, such as Instance Manager, engine images, and CSI Driver. Changes to the image pull policy are applied only after the system-managed pods restart.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400264 systemManagedPodsImagePullPolicy: ~
gio16bb6382025-05-21 18:42:40 +0400265 # -- Setting that allows you to create and attach a volume without having all replicas scheduled at the time of creation.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400266 allowVolumeCreationWithDegradedAvailability: ~
gio16bb6382025-05-21 18:42:40 +0400267 # -- Setting that allows Longhorn to automatically clean up the system-generated snapshot after replica rebuilding is completed.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400268 autoCleanupSystemGeneratedSnapshot: ~
gio16bb6382025-05-21 18:42:40 +0400269 # -- Setting that allows Longhorn to automatically clean up the snapshot generated by a recurring backup job.
270 autoCleanupRecurringJobBackupSnapshot: ~
271 # -- Maximum number of engines that are allowed to concurrently upgrade on each node after Longhorn Manager is upgraded. When the value is "0", Longhorn does not automatically upgrade volume engines to the new default engine image version.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400272 concurrentAutomaticEngineUpgradePerNodeLimit: ~
gio16bb6382025-05-21 18:42:40 +0400273 # -- Number of minutes that Longhorn waits before cleaning up the backing image file when no replicas in the disk are using it.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400274 backingImageCleanupWaitInterval: ~
gio16bb6382025-05-21 18:42:40 +0400275 # -- Number of seconds that Longhorn waits before downloading a backing image file again when the status of all image disk files changes to "failed" or "unknown".
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400276 backingImageRecoveryWaitInterval: ~
gio16bb6382025-05-21 18:42:40 +0400277 # -- Percentage of the total allocatable CPU resources on each node to be reserved for each instance manager pod when the V1 Data Engine is enabled. The default value is "12".
Giorgi Lekveishvili285ab622023-11-22 13:50:45 +0400278 guaranteedInstanceManagerCPU: ~
gio16bb6382025-05-21 18:42:40 +0400279 # -- Setting that notifies Longhorn that the cluster is using the Kubernetes Cluster Autoscaler.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400280 kubernetesClusterAutoscalerEnabled: ~
gio16bb6382025-05-21 18:42:40 +0400281 # -- Setting that allows Longhorn to automatically delete an orphaned resource and the corresponding data (for example, stale replicas). Orphaned resources on failed or unknown nodes are not automatically cleaned up.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400282 orphanAutoDeletion: ~
gio16bb6382025-05-21 18:42:40 +0400283 # -- Storage network for in-cluster traffic. When unspecified, Longhorn uses the Kubernetes cluster network.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400284 storageNetwork: ~
gio16bb6382025-05-21 18:42:40 +0400285 # -- Flag that prevents accidental uninstallation of Longhorn.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400286 deletingConfirmationFlag: ~
gio16bb6382025-05-21 18:42:40 +0400287 # -- Timeout between the Longhorn Engine and replicas. Specify a value between "8" and "30" seconds. The default value is "8".
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400288 engineReplicaTimeout: ~
gio16bb6382025-05-21 18:42:40 +0400289 # -- Setting that allows you to enable and disable snapshot hashing and data integrity checks.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400290 snapshotDataIntegrity: ~
gio16bb6382025-05-21 18:42:40 +0400291 # -- Setting that allows disabling of snapshot hashing after snapshot creation to minimize impact on system performance.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400292 snapshotDataIntegrityImmediateCheckAfterSnapshotCreation: ~
gio16bb6382025-05-21 18:42:40 +0400293 # -- Setting that defines when Longhorn checks the integrity of data in snapshot disk files. You must use the Unix cron expression format.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400294 snapshotDataIntegrityCronjob: ~
gio16bb6382025-05-21 18:42:40 +0400295 # -- 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.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400296 removeSnapshotsDuringFilesystemTrim: ~
gio16bb6382025-05-21 18:42:40 +0400297 # -- Setting that allows fast rebuilding of replicas using the checksum of snapshot disk files. Before enabling this setting, you must set the snapshot-data-integrity value to "enable" or "fast-check".
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400298 fastReplicaRebuildEnabled: ~
gio16bb6382025-05-21 18:42:40 +0400299 # -- Number of seconds that an HTTP client waits for a response from a File Sync server before considering the connection to have failed.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400300 replicaFileSyncHttpClientTimeout: ~
gio16bb6382025-05-21 18:42:40 +0400301 # -- 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 Lekveishvili285ab622023-11-22 13:50:45 +0400302 logLevel: ~
gio16bb6382025-05-21 18:42:40 +0400303 # -- Setting that allows you to specify a backup compression method.
Giorgi Lekveishvili285ab622023-11-22 13:50:45 +0400304 backupCompressionMethod: ~
gio16bb6382025-05-21 18:42:40 +0400305 # -- Maximum number of worker threads that can concurrently run for each backup.
Giorgi Lekveishvili285ab622023-11-22 13:50:45 +0400306 backupConcurrentLimit: ~
gio16bb6382025-05-21 18:42:40 +0400307 # -- Maximum number of worker threads that can concurrently run for each restore operation.
Giorgi Lekveishvili285ab622023-11-22 13:50:45 +0400308 restoreConcurrentLimit: ~
gio16bb6382025-05-21 18:42:40 +0400309 # -- Setting that allows you to enable the V1 Data Engine.
310 v1DataEngine: ~
311 # -- Setting that allows you to enable the V2 Data Engine, which is based on the Storage Performance Development Kit (SPDK). The V2 Data Engine is a preview feature and should not be used in production environments.
Giorgi Lekveishvili285ab622023-11-22 13:50:45 +0400312 v2DataEngine: ~
gio16bb6382025-05-21 18:42:40 +0400313 # -- Setting that allows you to configure maximum huge page size (in MiB) for the V2 Data Engine.
314 v2DataEngineHugepageLimit: ~
315 # -- Setting that allows rebuilding of offline replicas for volumes using the V2 Data Engine.
Giorgi Lekveishvili285ab622023-11-22 13:50:45 +0400316 offlineReplicaRebuilding: ~
gio16bb6382025-05-21 18:42:40 +0400317 # -- Number of millicpus on each node to be reserved for each Instance Manager pod when the V2 Data Engine is enabled. The default value is "1250".
318 v2DataEngineGuaranteedInstanceManagerCPU: ~
319 # -- Setting that allows scheduling of empty node selector volumes to any node.
320 allowEmptyNodeSelectorVolume: ~
321 # -- Setting that allows scheduling of empty disk selector volumes to any disk.
322 allowEmptyDiskSelectorVolume: ~
323 # -- 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.
324 allowCollectingLonghornUsageMetrics: ~
325 # -- Setting that temporarily prevents all attempts to purge volume snapshots.
326 disableSnapshotPurge: ~
327 # -- Maximum snapshot count for a volume. The value should be between 2 to 250
328 snapshotMaxCount: ~
329
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400330privateRegistry:
gio16bb6382025-05-21 18:42:40 +0400331 # -- Setting that allows you to create a private registry secret.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400332 createSecret: ~
gio16bb6382025-05-21 18:42:40 +0400333 # -- URL of a private registry. When unspecified, Longhorn uses the default system registry.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400334 registryUrl: ~
gio16bb6382025-05-21 18:42:40 +0400335 # -- User account used for authenticating with a private registry.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400336 registryUser: ~
gio16bb6382025-05-21 18:42:40 +0400337 # -- Password for authenticating with a private registry.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400338 registryPasswd: ~
gio16bb6382025-05-21 18:42:40 +0400339 # -- Kubernetes secret that allows you to pull images from a private registry. This setting applies only when creation of private registry secrets is enabled. You must include the private registry name in the secret name.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400340 registrySecret: ~
341
342longhornManager:
343 log:
gio16bb6382025-05-21 18:42:40 +0400344 # -- Format of Longhorn Manager logs. (Options: "plain", "json")
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400345 format: plain
gio16bb6382025-05-21 18:42:40 +0400346 # -- PriorityClass for Longhorn Manager.
347 priorityClass: *defaultPriorityClassNameRef
348 # -- Toleration for Longhorn Manager on nodes allowed to run Longhorn components.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400349 tolerations: []
350 ## If you want to set tolerations for Longhorn Manager DaemonSet, delete the `[]` in the line above
351 ## and uncomment this example block
352 # - key: "key"
353 # operator: "Equal"
354 # value: "value"
355 # effect: "NoSchedule"
gio16bb6382025-05-21 18:42:40 +0400356 # -- Node selector for Longhorn Manager. Specify the nodes allowed to run Longhorn Manager.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400357 nodeSelector: {}
358 ## If you want to set node selector for Longhorn Manager DaemonSet, delete the `{}` in the line above
359 ## and uncomment this example block
360 # label-key1: "label-value1"
361 # label-key2: "label-value2"
gio16bb6382025-05-21 18:42:40 +0400362 # -- Annotation for the Longhorn Manager service.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400363 serviceAnnotations: {}
364 ## If you want to set annotations for the Longhorn Manager service, delete the `{}` in the line above
365 ## and uncomment this example block
366 # annotation-key1: "annotation-value1"
367 # annotation-key2: "annotation-value2"
368
369longhornDriver:
gio16bb6382025-05-21 18:42:40 +0400370 log:
371 # -- Format of longhorn-driver logs. (Options: "plain", "json")
372 format: plain
373 # -- PriorityClass for Longhorn Driver.
374 priorityClass: *defaultPriorityClassNameRef
375 # -- Toleration for Longhorn Driver on nodes allowed to run Longhorn components.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400376 tolerations: []
377 ## If you want to set tolerations for Longhorn Driver Deployer Deployment, delete the `[]` in the line above
378 ## and uncomment this example block
379 # - key: "key"
380 # operator: "Equal"
381 # value: "value"
382 # effect: "NoSchedule"
gio16bb6382025-05-21 18:42:40 +0400383 # -- Node selector for Longhorn Driver. Specify the nodes allowed to run Longhorn Driver.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400384 nodeSelector: {}
385 ## If you want to set node selector for Longhorn Driver Deployer Deployment, delete the `{}` in the line above
386 ## and uncomment this example block
387 # label-key1: "label-value1"
388 # label-key2: "label-value2"
389
390longhornUI:
gio16bb6382025-05-21 18:42:40 +0400391 # -- Replica count for Longhorn UI.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400392 replicas: 2
gio16bb6382025-05-21 18:42:40 +0400393 # -- PriorityClass for Longhorn UI.
394 priorityClass: *defaultPriorityClassNameRef
395 # -- Toleration for Longhorn UI on nodes allowed to run Longhorn components.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400396 tolerations: []
397 ## If you want to set tolerations for Longhorn UI Deployment, delete the `[]` in the line above
398 ## and uncomment this example block
399 # - key: "key"
400 # operator: "Equal"
401 # value: "value"
402 # effect: "NoSchedule"
gio16bb6382025-05-21 18:42:40 +0400403 # -- Node selector for Longhorn UI. Specify the nodes allowed to run Longhorn UI.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400404 nodeSelector: {}
405 ## If you want to set node selector for Longhorn UI Deployment, delete the `{}` in the line above
406 ## and uncomment this example block
407 # label-key1: "label-value1"
408 # label-key2: "label-value2"
409
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400410ingress:
gio16bb6382025-05-21 18:42:40 +0400411 # -- Setting that allows Longhorn to generate ingress records for the Longhorn UI service.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400412 enabled: false
413
gio16bb6382025-05-21 18:42:40 +0400414 # -- IngressClass resource that contains ingress configuration, including the name of the Ingress controller.
415 # ingressClassName can replace the kubernetes.io/ingress.class annotation used in earlier Kubernetes releases.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400416 ingressClassName: ~
417
gio16bb6382025-05-21 18:42:40 +0400418 # -- Hostname of the Layer 7 load balancer.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400419 host: sslip.io
420
gio16bb6382025-05-21 18:42:40 +0400421 # -- Setting that allows you to enable TLS on ingress records.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400422 tls: false
423
gio16bb6382025-05-21 18:42:40 +0400424 # -- Setting that allows you to enable secure connections to the Longhorn UI service via port 443.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400425 secureBackends: false
426
gio16bb6382025-05-21 18:42:40 +0400427 # -- 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.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400428 tlsSecret: longhorn.local-tls
429
gio16bb6382025-05-21 18:42:40 +0400430 # -- Default ingress path. You can access the Longhorn UI by following the full ingress path {{host}}+{{path}}.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400431 path: /
432
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400433 ## If you're using kube-lego, you will want to add:
434 ## kubernetes.io/tls-acme: true
435 ##
436 ## For a full list of possible ingress annotations, please see
437 ## ref: https://github.com/kubernetes/ingress-nginx/blob/master/docs/annotations.md
438 ##
439 ## If tls is set to true, annotation ingress.kubernetes.io/secure-backends: "true" will automatically be set
gio16bb6382025-05-21 18:42:40 +0400440 # -- Ingress annotations in the form of key-value pairs.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400441 annotations:
442 # kubernetes.io/ingress.class: nginx
443 # kubernetes.io/tls-acme: true
444
gio16bb6382025-05-21 18:42:40 +0400445 # -- Secret that contains a TLS private key and certificate. Use secrets if you want to use your own certificates to secure ingresses.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400446 secrets:
447 ## If you're providing your own certificates, please use this to add the certificates as secrets
448 ## key and certificate should start with -----BEGIN CERTIFICATE----- or
449 ## -----BEGIN RSA PRIVATE KEY-----
450 ##
451 ## name should line up with a tlsSecret set further up
452 ## If you're using kube-lego, this is unneeded, as it will create the secret for you if it is not set
453 ##
454 ## It is also possible to create and manage the certificates outside of this helm chart
455 ## Please see README.md for more information
456 # - name: longhorn.local-tls
457 # key:
458 # certificate:
459
gio16bb6382025-05-21 18:42:40 +0400460# -- Setting that allows you to enable pod security policies (PSPs) that allow privileged Longhorn pods to start. This setting applies only to clusters running Kubernetes 1.25 and earlier, and with the built-in Pod Security admission controller enabled.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400461enablePSP: false
462
gio16bb6382025-05-21 18:42:40 +0400463# -- Specify override namespace, specifically this is useful for using longhorn as sub-chart and its release namespace is not the `longhorn-system`.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400464namespaceOverride: ""
465
gio16bb6382025-05-21 18:42:40 +0400466# -- Annotation for the Longhorn Manager DaemonSet pods. This setting is optional.
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400467annotations: {}
468
469serviceAccount:
gio16bb6382025-05-21 18:42:40 +0400470 # -- Annotations to add to the service account
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +0400471 annotations: {}
gio16bb6382025-05-21 18:42:40 +0400472
473metrics:
474 serviceMonitor:
475 # -- Setting that allows the creation of a Prometheus ServiceMonitor resource for Longhorn Manager components.
476 enabled: false
477 # -- Additional labels for the Prometheus ServiceMonitor resource.
478 additionalLabels: {}
479 # -- Annotations for the Prometheus ServiceMonitor resource.
480 annotations: {}
481 # -- Interval at which Prometheus scrapes the metrics from the target.
482 interval: ""
483 # -- Timeout after which Prometheus considers the scrape to be failed.
484 scrapeTimeout: ""
485 # -- Configures the relabeling rules to apply the target’s metadata labels. See the [Prometheus Operator
486 # documentation](https://prometheus-operator.dev/docs/api-reference/api/#monitoring.coreos.com/v1.Endpoint) for
487 # formatting details.
488 relabelings: []
489 # -- Configures the relabeling rules to apply to the samples before ingestion. See the [Prometheus Operator
490 # documentation](https://prometheus-operator.dev/docs/api-reference/api/#monitoring.coreos.com/v1.Endpoint) for
491 # formatting details.
492 metricRelabelings: []
493
494## openshift settings
495openshift:
496 # -- Setting that allows Longhorn to integrate with OpenShift.
497 enabled: false
498 ui:
499 # -- Route for connections between Longhorn and the OpenShift web console.
500 route: "longhorn-ui"
501 # -- Port for accessing the OpenShift web console.
502 port: 443
503 # -- Port for proxy that provides access to the OpenShift web console.
504 proxy: 8443
505
506# -- Setting that allows Longhorn to generate code coverage profiles.
507enableGoCoverDir: false