helm: allows to mount extra volumes

Signed-off-by: Roland.Ma <rolandma@yunify.com>
This commit is contained in:
Roland.Ma
2021-08-23 02:34:00 +00:00
parent ddc645838d
commit 709e0c92f1
4 changed files with 97 additions and 46 deletions

View File

@@ -27,7 +27,7 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }}
name: ks-console
resources:
{{- toYaml .Values.consoleResources | nindent 12 }}
{{- toYaml .Values.console.resources | nindent 12 }}
volumeMounts:
- mountPath: /opt/kubesphere/console/server/local_config.yaml
name: ks-console-config
@@ -36,6 +36,9 @@ spec:
name: sample-bookinfo
- mountPath: /etc/localtime
name: host-time
{{- if .Values.console.extraVolumeMounts }}
{{- toYaml .Values.console.extraVolumeMounts | nindent 8 }}
{{- end }}
livenessProbe:
tcpSocket:
port: 8000
@@ -89,7 +92,10 @@ spec:
path: /etc/localtime
type: ""
name: host-time
{{- if .Values.console.extraVolumes }}
{{ toYaml .Values.console.extraVolumes | nindent 6 }}
{{- end }}
---
apiVersion: v1