Add airgap support to chart
Signed-off-by: meldafrawi <mohamed.eldafrawi@rancher.com>
This commit is contained in:
parent
57785d98b8
commit
6b990aea63
@ -4,6 +4,54 @@ labels:
|
|||||||
io.rancher.certified: experimental
|
io.rancher.certified: experimental
|
||||||
namespace: longhorn-system
|
namespace: longhorn-system
|
||||||
questions:
|
questions:
|
||||||
|
- variable: image.longhorn.manager
|
||||||
|
default: longhornio/longhorn-manager
|
||||||
|
description: "Specify Longhorn Manager Image Name"
|
||||||
|
type: string
|
||||||
|
label: Longhorn Manager Image Name
|
||||||
|
group: "Longhorn Images Settings"
|
||||||
|
- variable: image.longhorn.managerTag
|
||||||
|
default: v0.8.0
|
||||||
|
description: "Specify Longhorn Manager Image Tag"
|
||||||
|
type: string
|
||||||
|
label: Longhorn Manager Image Tag
|
||||||
|
group: "Longhorn Images Settings"
|
||||||
|
- variable: image.longhorn.engine
|
||||||
|
default: longhornio/longhorn-engine
|
||||||
|
description: "Specify Longhorn Engine Image Name"
|
||||||
|
type: string
|
||||||
|
label: Longhorn Engine Image Name
|
||||||
|
group: "Longhorn Images Settings"
|
||||||
|
- variable: image.longhorn.engineTag
|
||||||
|
default: v0.8.0
|
||||||
|
description: "Specify Longhorn Engine Image Tag"
|
||||||
|
type: string
|
||||||
|
label: Longhorn Engine Image Tag
|
||||||
|
group: "Longhorn Images Settings"
|
||||||
|
- variable: image.longhorn.ui
|
||||||
|
default: longhornio/longhorn-ui
|
||||||
|
description: "Specify Longhorn UI Image Name"
|
||||||
|
type: string
|
||||||
|
label: Longhorn UI Image Name
|
||||||
|
group: "Longhorn Images Settings"
|
||||||
|
- variable: image.longhorn.uiTag
|
||||||
|
default: v0.8.0
|
||||||
|
description: "Specify Longhorn UI Image Tag"
|
||||||
|
type: string
|
||||||
|
label: Longhorn UI Image Tag
|
||||||
|
group: "Longhorn Images Settings"
|
||||||
|
- variable: image.longhorn.instanceManager
|
||||||
|
default: longhornio/longhorn-instance-manager
|
||||||
|
description: "Specify Longhorn Instance Manager Image Name"
|
||||||
|
type: string
|
||||||
|
label: Longhorn Instance Manager Image Name
|
||||||
|
group: "Longhorn Images Settings"
|
||||||
|
- variable: image.longhorn.instanceManagerTag
|
||||||
|
default: v1_20200301
|
||||||
|
description: "Specify Longhorn Instance Manager Image Tag"
|
||||||
|
type: string
|
||||||
|
label: Longhorn Manager Image Tag
|
||||||
|
group: "Longhorn Images Settings"
|
||||||
- variable: csi.attacherImage
|
- variable: csi.attacherImage
|
||||||
default:
|
default:
|
||||||
description: "Specify CSI attacher image. Leave blank to autodetect."
|
description: "Specify CSI attacher image. Leave blank to autodetect."
|
||||||
@ -22,6 +70,12 @@ questions:
|
|||||||
type: string
|
type: string
|
||||||
label: Longhorn CSI Driver Registrar Image
|
label: Longhorn CSI Driver Registrar Image
|
||||||
group: "Longhorn CSI Driver Settings"
|
group: "Longhorn CSI Driver Settings"
|
||||||
|
- variable: csi.resizerImage
|
||||||
|
default:
|
||||||
|
description: "Specify CSI Driver Resizer image. Leave blank to autodetect."
|
||||||
|
type: string
|
||||||
|
label: Longhorn CSI Driver Resizer Image
|
||||||
|
group: "Longhorn CSI Driver Settings"
|
||||||
- variable: csi.kubeletRootDir
|
- variable: csi.kubeletRootDir
|
||||||
default:
|
default:
|
||||||
description: "Specify kubelet root-dir. Leave blank to autodetect."
|
description: "Specify kubelet root-dir. Leave blank to autodetect."
|
||||||
@ -59,7 +113,6 @@ questions:
|
|||||||
min: 1
|
min: 1
|
||||||
max: 10
|
max: 10
|
||||||
label: Default Storage Class Replica Count
|
label: Default Storage Class Replica Count
|
||||||
|
|
||||||
- variable: defaultSettings.backupTarget
|
- variable: defaultSettings.backupTarget
|
||||||
label: Backup Target
|
label: Backup Target
|
||||||
description: "The target used for backup. Support NFS or S3."
|
description: "The target used for backup. Support NFS or S3."
|
||||||
@ -144,6 +197,30 @@ questions:
|
|||||||
group: "Longhorn Default Settings"
|
group: "Longhorn Default Settings"
|
||||||
type: string
|
type: string
|
||||||
default: ""
|
default: ""
|
||||||
|
- variable: defaultSettings.registrySecret
|
||||||
|
label: Private registry secret
|
||||||
|
description: "The Kubernetes Secret name"
|
||||||
|
group: "Longhorn Default Settings"
|
||||||
|
type: string
|
||||||
|
default: ""
|
||||||
|
- variable: privateRegistry.registryUrl
|
||||||
|
label: Private registry URL
|
||||||
|
description: "URL of private registry"
|
||||||
|
group: "Private Registry Settings"
|
||||||
|
type: string
|
||||||
|
default: ""
|
||||||
|
- variable: privateRegistry.registryUser
|
||||||
|
label: Private registry user
|
||||||
|
description: "User used to authenticate to private registry"
|
||||||
|
group: "Private Registry Settings"
|
||||||
|
type: string
|
||||||
|
default: ""
|
||||||
|
- variable: privateRegistry.registryPasswd
|
||||||
|
label: Private registry password
|
||||||
|
description: "Password used to authenticate to private registry"
|
||||||
|
group: "Private Registry Settings"
|
||||||
|
type: password
|
||||||
|
default: ""
|
||||||
- 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"
|
||||||
|
@ -20,3 +20,8 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this
|
|||||||
{{- $fullname := (include "longhorn.fullname" .) -}}
|
{{- $fullname := (include "longhorn.fullname" .) -}}
|
||||||
{{- printf "http://%s-backend:9500" $fullname | trunc 63 | trimSuffix "-" -}}
|
{{- printf "http://%s-backend:9500" $fullname | trunc 63 | trimSuffix "-" -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
|
||||||
|
{{- define "secret" }}
|
||||||
|
{{- printf "{\"auths\": {\"%s\": {\"auth\": \"%s\"}}}" .Values.privateRegistry.registryUrl (printf "%s:%s" .Values.privateRegistry.registryUser .Values.privateRegistry.registryPasswd | b64enc) | b64enc }}
|
||||||
|
{{- end }}
|
||||||
|
@ -80,6 +80,10 @@ spec:
|
|||||||
- name: longhorn-default-setting
|
- name: longhorn-default-setting
|
||||||
configMap:
|
configMap:
|
||||||
name: longhorn-default-setting
|
name: longhorn-default-setting
|
||||||
|
{{- if .Values.defaultSettings.registrySecret }}
|
||||||
|
imagePullSecrets:
|
||||||
|
- name: {{ .Values.defaultSettings.registrySecret }}
|
||||||
|
{{- end }}
|
||||||
serviceAccountName: longhorn-service-account
|
serviceAccountName: longhorn-service-account
|
||||||
updateStrategy:
|
updateStrategy:
|
||||||
rollingUpdate:
|
rollingUpdate:
|
||||||
|
@ -18,3 +18,4 @@ data:
|
|||||||
default-longhorn-static-storage-class: {{ .Values.defaultSettings.defaultLonghornStaticStorageClass }}
|
default-longhorn-static-storage-class: {{ .Values.defaultSettings.defaultLonghornStaticStorageClass }}
|
||||||
backupstore-poll-interval: {{ .Values.defaultSettings.backupstorePollInterval }}
|
backupstore-poll-interval: {{ .Values.defaultSettings.backupstorePollInterval }}
|
||||||
taint-toleration: {{ .Values.defaultSettings.taintToleration }}
|
taint-toleration: {{ .Values.defaultSettings.taintToleration }}
|
||||||
|
registry-secret: {{ .Values.defaultSettings.registrySecret }}
|
||||||
|
@ -58,6 +58,10 @@ spec:
|
|||||||
- name: CSI_DRIVER_REGISTRAR_IMAGE
|
- name: CSI_DRIVER_REGISTRAR_IMAGE
|
||||||
value: {{ .Values.csi.driverRegistrarImage }}
|
value: {{ .Values.csi.driverRegistrarImage }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.csi.resizerImage }}
|
||||||
|
- name: CSI_RESIZER_IMAGE
|
||||||
|
value: {{ .Values.csi.resizerImage }}
|
||||||
|
{{- end }}
|
||||||
{{- if .Values.csi.attacherReplicaCount }}
|
{{- if .Values.csi.attacherReplicaCount }}
|
||||||
- name: CSI_ATTACHER_REPLICA_COUNT
|
- name: CSI_ATTACHER_REPLICA_COUNT
|
||||||
value: "{{ .Values.csi.attacherReplicaCount }}"
|
value: "{{ .Values.csi.attacherReplicaCount }}"
|
||||||
@ -66,4 +70,8 @@ spec:
|
|||||||
- name: CSI_PROVISIONER_REPLICA_COUNT
|
- name: CSI_PROVISIONER_REPLICA_COUNT
|
||||||
value: "{{ .Values.csi.provisionerReplicaCount }}"
|
value: "{{ .Values.csi.provisionerReplicaCount }}"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.defaultSettings.registrySecret }}
|
||||||
|
imagePullSecrets:
|
||||||
|
- name: {{ .Values.defaultSettings.registrySecret }}
|
||||||
|
{{- end }}
|
||||||
serviceAccountName: longhorn-service-account
|
serviceAccountName: longhorn-service-account
|
||||||
|
@ -24,6 +24,10 @@ spec:
|
|||||||
env:
|
env:
|
||||||
- name: LONGHORN_MANAGER_IP
|
- name: LONGHORN_MANAGER_IP
|
||||||
value: "http://longhorn-backend:9500"
|
value: "http://longhorn-backend:9500"
|
||||||
|
{{- if .Values.defaultSettings.registrySecret }}
|
||||||
|
imagePullSecrets:
|
||||||
|
- name: {{ .Values.defaultSettings.registrySecret }}
|
||||||
|
{{- end }}
|
||||||
---
|
---
|
||||||
kind: Service
|
kind: Service
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
|
@ -26,4 +26,8 @@ spec:
|
|||||||
fieldRef:
|
fieldRef:
|
||||||
fieldPath: metadata.namespace
|
fieldPath: metadata.namespace
|
||||||
restartPolicy: OnFailure
|
restartPolicy: OnFailure
|
||||||
|
{{- if .Values.defaultSettings.registrySecret }}
|
||||||
|
imagePullSecrets:
|
||||||
|
- name: {{ .Values.defaultSettings.registrySecret }}
|
||||||
|
{{- end }}
|
||||||
serviceAccountName: longhorn-service-account
|
serviceAccountName: longhorn-service-account
|
||||||
|
9
chart/templates/registry-secret.yml
Normal file
9
chart/templates/registry-secret.yml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{{- if .Values.defaultSettings.registrySecret }}
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: {{ .Values.defaultSettings.registrySecret }}
|
||||||
|
type: kubernetes.io/dockerconfigjson
|
||||||
|
data:
|
||||||
|
.dockerconfigjson: {{ template "secret" . }}
|
||||||
|
{{- end }}
|
@ -27,4 +27,8 @@ spec:
|
|||||||
fieldRef:
|
fieldRef:
|
||||||
fieldPath: metadata.namespace
|
fieldPath: metadata.namespace
|
||||||
restartPolicy: OnFailure
|
restartPolicy: OnFailure
|
||||||
|
{{- if .Values.defaultSettings.registrySecret }}
|
||||||
|
imagePullSecrets:
|
||||||
|
- name: {{ .Values.defaultSettings.registrySecret }}
|
||||||
|
{{- end }}
|
||||||
serviceAccountName: longhorn-service-account
|
serviceAccountName: longhorn-service-account
|
||||||
|
@ -29,6 +29,7 @@ csi:
|
|||||||
attacherImage:
|
attacherImage:
|
||||||
provisionerImage:
|
provisionerImage:
|
||||||
driverRegistrarImage:
|
driverRegistrarImage:
|
||||||
|
resizerImage:
|
||||||
kubeletRootDir:
|
kubeletRootDir:
|
||||||
attacherReplicaCount:
|
attacherReplicaCount:
|
||||||
provisionerReplicaCount:
|
provisionerReplicaCount:
|
||||||
@ -47,6 +48,12 @@ defaultSettings:
|
|||||||
defaultLonghornStaticStorageClass:
|
defaultLonghornStaticStorageClass:
|
||||||
backupstorePollInterval:
|
backupstorePollInterval:
|
||||||
taintToleration:
|
taintToleration:
|
||||||
|
registrySecret:
|
||||||
|
|
||||||
|
privateRegistry:
|
||||||
|
registryUrl:
|
||||||
|
registryUser:
|
||||||
|
registryPasswd:
|
||||||
|
|
||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user