description:"Deploy either the CSI or FlexVolume driver. CSI is newer but requires MountPropagation, a feature enabled by default in Kubernetes v1.10 and later"
description:"Leave blank to autodetect. For RKE, use `/var/lib/kubelet/volumeplugins`. For GKE, use `/home/kubernetes/flexvolume/` instead. Users can find the correct directory by running `ps aux|grep kubelet` on the host and check the --volume-plugin-dir parameter. If there is none, the default `/usr/libexec/kubernetes/kubelet-plugins/volume/exec/` will be used."
type:string
label:Longhorn Flexvolume Path
show_subquestion_if:csi
subquestions:
- variable:csi.attacherImage
default:
description:"Specify CSI attacher image. Leave blank to autodetect."
type:string
label:Longhorn CSI Attacher Image
- variable:csi.provisionerImage
default:
description:"Specify CSI provisioner image. Leave blank to autodetect."
type:string
label:Longhorn CSI Provisioner Image
- variable:csi.driverRegistrarImage
default:
description:"Specify CSI Driver Registrar image. Leave blank to autodetect."
description:'Create default Disk automatically only on Nodes with the label "node.longhorn.io/create-default-disk=true" if no other Disks exist. If disabled, default Disk will be created on all new Nodes (only on first add). By default false.'
group:"Longhorn Default Settings"
type:boolean
default:"false"
- variable:defaultSettings.defaultDataPath
label:Default Data Path
description:'Default path to use for storing data on a host. By default "/var/lib/rancher/longhorn/"'
description:"If one disk's available capacity to it's maximum capacity in % is less than the minimal available percentage, the disk would become unschedulable until more space freed up. By default 10."
group:"Longhorn Default Settings"
type:int
min:0
max:100
default:10
- variable:defaultSettings.upgradeChecker
label:Enable Upgrade Checker
description:'Upgrade Checker will check for new Longhorn version periodically. When there is a new version available, it will notify the user using UI. By default true.'
group:"Longhorn Default Settings"
type:boolean
default:"true"
- variable:defaultSettings.defaultReplicaCount
label:Default Replica Count
description:"The default number of replicas when creating the volume from Longhorn UI. For Kubernetes, update the `numberOfReplicas` in the StorageClass. By default 3."
group:"Longhorn Default Settings"
type:int
min:1
max:20
default:3
- variable:defaultSettings.guaranteedEngineCPU
label:Guaranteed Engine CPU
description: '(EXPERIMENTAL FEATURE) Allow Longhorn Engine to have guaranteed CPU allocation. The value is how many CPUs should be reserved for each Engine/Replica Manager Pod created by Longhorn. For example, 0.1 means one-tenth of a CPU. This will help maintain engine stability during high node workload. It only applies to the Engine/Replica Manager Pods created after the setting took effect. WARNING:Attaching of the volume may fail or stuck while using this feature due to the resource constraint. Disabled ("0") by default.'
description:"The 'storageClassName' is for PV/PVC when creating PV/PVC for an existing Longhorn volume. Notice that it's unnecessary for users create the related StorageClass object in Kubernetes since the StorageClass would only be used as matching labels for PVC bounding purpose. By default 'longhorn-static'."
description:"By setting tolerations for Longhorn then adding taints for the nodes, the nodes with large storage can be dedicated to Longhorn only (to store replica data) and reject other general workloads. Multiple tolerations can be set here, and these tolerations are separated by semicolon. For example, \"key1=value1:NoSchedule; key2:NoExecute\". Notice that \"kubernetes.io\" is used as the key of all Kubernetes default tolerations, please do not contain this substring in your toleration setting."