chart: longhorn default storageClass replica count became configurable

This commit is contained in:
Shuo Wu 2019-05-08 14:05:55 -07:00 committed by Sheng Yang
parent d5a34b20ad
commit a13bbac74b
3 changed files with 10 additions and 1 deletions

View File

@ -63,6 +63,14 @@ questions:
type: boolean type: boolean
required: true required: true
label: Default Storage Class label: Default Storage Class
- variable: persistence.defaultClassReplicaCount
description: "Set replica count for default StorageClass"
group: "Longhorn Settings"
type: int
default: 3
min: 1
max: 10
label: Default Storage Class Replica Count
- variable: ingress.enabled - variable: ingress.enabled
default: "false" default: "false"
description: "Expose app using Layer 7 Load Balancer - ingress" description: "Expose app using Layer 7 Load Balancer - ingress"

View File

@ -11,7 +11,7 @@ metadata:
{{- end }} {{- end }}
provisioner: rancher.io/longhorn provisioner: rancher.io/longhorn
parameters: parameters:
numberOfReplicas: "3" numberOfReplicas: "{{ .Values.persistence.defaultClassReplicaCount }}"
staleReplicaTimeout: "30" staleReplicaTimeout: "30"
fromBackup: "" fromBackup: ""
baseImage: "" baseImage: ""

View File

@ -27,6 +27,7 @@ persistence:
# If there is none, the default /usr/libexec/kubernetes/kubelet-plugins/volume/exec/ will be used. # If there is none, the default /usr/libexec/kubernetes/kubelet-plugins/volume/exec/ will be used.
flexvolumePath: flexvolumePath:
defaultClass: true defaultClass: true
defaultClassReplicaCount: 3
csi: csi:
attacherImage: attacherImage: