You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Next, we're going to use a tool called Ansible to set up remote control over all our nodes. It will effectively allow us to issue install commands or customize all our nodes at once via single commands.
Copy file name to clipboardExpand all lines: helm/longhorn/charts/longhorn/values.yaml
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -158,9 +158,9 @@ persistence:
158
158
# -- mkfs parameters of the default Longhorn StorageClass.
159
159
defaultMkfsParams: ""
160
160
# -- Replica count of the default Longhorn StorageClass.
161
-
defaultClassReplicaCount: 3
161
+
defaultClassReplicaCount: 4
162
162
# -- Data locality of the default Longhorn StorageClass. (Options: "disabled", "best-effort")
163
-
defaultDataLocality: disabled
163
+
defaultDataLocality: best-effort
164
164
# -- Reclaim policy that provides instructions for handling of a volume after its claim is released. (Options: "Retain", "Delete")
165
165
reclaimPolicy: Delete
166
166
# -- VolumeBindingMode controls when volume binding and dynamic provisioning should occur. (Options: "Immediate", "WaitForFirstConsumer") (Defaults to "Immediate")
@@ -232,9 +232,9 @@ defaultSettings:
232
232
# -- 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.
233
233
defaultDataLocality: ~
234
234
# -- Setting that allows scheduling on nodes with healthy replicas of the same volume. This setting is disabled by default.
235
-
replicaSoftAntiAffinity: ~
235
+
replicaSoftAntiAffinity: enabled
236
236
# -- Setting that automatically rebalances replicas when an available node is discovered.
237
-
replicaAutoBalance: ~
237
+
replicaAutoBalance: best-effort
238
238
# -- Percentage of storage that can be allocated relative to hard drive capacity. The default value is "100".
239
239
storageOverProvisioningPercentage: ~
240
240
# -- 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".
@@ -246,7 +246,7 @@ defaultSettings:
246
246
# -- 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.
247
247
upgradeResponderURL: ~
248
248
# -- 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".
249
-
defaultReplicaCount: ~
249
+
defaultReplicaCount: 4
250
250
# -- 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".
251
251
defaultLonghornStaticStorageClass: ~
252
252
# -- Number of minutes that Longhorn keeps a failed backup resource. When the value is "0", automatic deletion is disabled.
@@ -279,9 +279,9 @@ defaultSettings:
279
279
# -- Setting that prevents Longhorn Manager from scheduling replicas on a cordoned Kubernetes node. This setting is enabled by default.
280
280
disableSchedulingOnCordonedNode: ~
281
281
# -- 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.
282
-
replicaZoneSoftAntiAffinity: ~
282
+
replicaZoneSoftAntiAffinity: enabled
283
283
# -- Setting that allows scheduling on disks with existing healthy replicas of the same volume. This setting is enabled by default.
284
-
replicaDiskSoftAntiAffinity: ~
284
+
replicaDiskSoftAntiAffinity: enabled
285
285
# -- Policy that defines the action Longhorn takes when a volume is stuck with a StatefulSet or Deployment pod on a node that failed.
286
286
nodeDownPodDeletionPolicy: ~
287
287
# -- Policy that defines the action Longhorn takes when a node with the last healthy replica of a volume is drained.
0 commit comments