chore(helm): sharing chalice nfs folder

Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>
This commit is contained in:
rjshrjndrn 2022-08-29 11:31:55 +02:00
parent 15c6370153
commit 35478feb20
2 changed files with 27 additions and 2 deletions

View file

@ -106,16 +106,33 @@ spec:
containerPort: {{ $val }}
protocol: TCP
{{- end }}
{{- with .Values.persistence.mounts }}
volumeMounts:
- name: datadir
mountPath: /mnt/efs
{{- with .Values.persistence.mounts }}
{{- toYaml . | nindent 12 }}
{{- end }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.persistence.volumes }}
{{- if eq .Values.pvc.name "hostPath" }}
volumes:
- name: datadir
hostPath:
# Ensure the file directory is created.
path: {{ .Values.pvc.hostMountPath }}
type: DirectoryOrCreate
{{- with .Values.persistence.volumes }}
{{- toYaml . | nindent 6 }}
{{- end }}
{{- else }}
volumes:
- name: datadir
persistentVolumeClaim:
claimName: {{ .Values.pvc.name }}
{{- with .Values.persistence.volumes }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}

View file

@ -122,6 +122,14 @@ healthCheck:
timeoutSeconds: 10
pvc:
# This can be either persistentVolumeClaim or hostPath.
# In case of pvc, you'll have to provide the pvc name.
# For example
# name: openreplay-efs
name: hostPath
hostMountPath: /openreplay/storage/nfs
persistence: {}
# # Spec of spec.template.spec.containers[*].volumeMounts
# mounts: