Commit c8f87223 by Shuo Wu Committed by Sheng Yang

Longhorn v0.5.0 release

Synchronized from github.com/rancher/longhorn/
parent 09f939ed
apiVersion: v1 apiVersion: v1
name: longhorn name: longhorn
version: 0.4.1 version: 0.5.0
appVersion: v0.4.1 appVersion: v0.5.0
kubeVersion: ">=v1.8.0-r0" kubeVersion: ">=v1.8.0-r0"
description: Longhorn is a distributed block storage system for Kubernetes powered by Rancher Labs. description: Longhorn is a distributed block storage system for Kubernetes powered by Rancher Labs.
keywords: keywords:
......
# Rancher Longhorn Chart # Rancher Longhorn Chart
Please install Longhorn chart in `longhorn-system` namespace only.
The following document pertains to running Longhorn from the Rancher 2.0 chart. The following document pertains to running Longhorn from the Rancher 2.0 chart.
## Source Code ## Source Code
......
...@@ -37,6 +37,25 @@ questions: ...@@ -37,6 +37,25 @@ questions:
description: "Specify CSI Driver Registrar image. Leave blank to autodetect." description: "Specify CSI Driver Registrar image. Leave blank to autodetect."
type: string type: string
label: Longhorn CSI Driver Registrar Image label: Longhorn CSI Driver Registrar Image
- variable: csi.kubeletRootDir
default:
description: "Specify kubelet root-dir. Leave blank to autodetect."
type: string
label: Kubelet Root Directory
- variable: csi.attacherReplicaCount
type: int
default:
min: 1
max: 10
description: "Specify number of CSI Attacher replica. By default 3."
label: Longhorn CSI Attacher replica count
- variable: csi.provisionerReplicaCount
type: int
default:
min: 1
max: 10
description: "Specify number of CSI Provisioner replica. By default 3."
label: Longhorn CSI Provisioner replica count
- variable: persistence.defaultClass - variable: persistence.defaultClass
default: "true" default: "true"
description: "Set as default StorageClass" description: "Set as default StorageClass"
...@@ -44,6 +63,14 @@ questions: ...@@ -44,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"
......
...@@ -46,6 +46,10 @@ spec: ...@@ -46,6 +46,10 @@ spec:
fieldPath: spec.serviceAccountName fieldPath: spec.serviceAccountName
- name: FLEXVOLUME_DIR - name: FLEXVOLUME_DIR
value: {{ .Values.persistence.flexvolumePath }} value: {{ .Values.persistence.flexvolumePath }}
{{- if .Values.csi.kubeletRootDir }}
- name: KUBELET_ROOT_DIR
value: {{ .Values.csi.kubeletRootDir }}
{{- end }}
{{- if .Values.csi.attacherImage }} {{- if .Values.csi.attacherImage }}
- name: CSI_ATTACHER_IMAGE - name: CSI_ATTACHER_IMAGE
value: {{ .Values.csi.attacherImage }} value: {{ .Values.csi.attacherImage }}
...@@ -58,4 +62,12 @@ spec: ...@@ -58,4 +62,12 @@ spec:
- name: CSI_DRIVER_REGISTRAR_IMAGE - name: CSI_DRIVER_REGISTRAR_IMAGE
value: {{ .Values.csi.driverRegistrarImage }} value: {{ .Values.csi.driverRegistrarImage }}
{{- end }} {{- end }}
{{- if .Values.csi.attacherReplicaCount }}
- name: CSI_ATTACHER_REPLICA_COUNT
value: "{{ .Values.csi.attacherReplicaCount }}"
{{- end }}
{{- if .Values.csi.provisionerReplicaCount }}
- name: CSI_PROVISIONER_REPLICA_COUNT
value: "{{ .Values.csi.provisionerReplicaCount }}"
{{- end }}
serviceAccountName: longhorn-service-account serviceAccountName: longhorn-service-account
...@@ -11,7 +11,7 @@ metadata: ...@@ -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: ""
...@@ -22,7 +22,7 @@ spec: ...@@ -22,7 +22,7 @@ spec:
- uninstall - uninstall
- --force - --force
env: env:
- name: POD_NAMESPACE - name: LONGHORN_NAMESPACE
valueFrom: valueFrom:
fieldRef: fieldRef:
fieldPath: metadata.namespace fieldPath: metadata.namespace
......
...@@ -4,11 +4,11 @@ ...@@ -4,11 +4,11 @@
image: image:
longhorn: longhorn:
engine: rancher/longhorn-engine engine: rancher/longhorn-engine
engineTag: v0.4.1 engineTag: v0.5.0
manager: rancher/longhorn-manager manager: rancher/longhorn-manager
managerTag: v0.4.1 managerTag: v0.5.0
ui: rancher/longhorn-ui ui: rancher/longhorn-ui
uiTag: v0.4.1 uiTag: v0.5.0
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
service: service:
...@@ -27,11 +27,15 @@ persistence: ...@@ -27,11 +27,15 @@ 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:
provisionerImage: provisionerImage:
driverRegistrarImage: driverRegistrarImage:
kubeletRootDir:
attacherReplicaCount:
provisionerReplicaCount:
resources: {} resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious # We usually recommend not to specify default resources and to leave this as a conscious
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment