add .yamls for persistent storage for tatort, see tatort-dev
This commit is contained in:
@@ -62,6 +62,11 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml .Values.securityContext | nindent 12 }}
|
{{- toYaml .Values.securityContext | nindent 12 }}
|
||||||
|
{{ if .Values.sharedDataFolder.enabled }}
|
||||||
|
volumeMounts:
|
||||||
|
- name: shared-data-volume
|
||||||
|
mountPath: /daten
|
||||||
|
{{ end }}
|
||||||
resources:
|
resources:
|
||||||
{{ toYaml .Values.resources | indent 12 }}
|
{{ toYaml .Values.resources | indent 12 }}
|
||||||
{{- with .Values.nodeSelector }}
|
{{- with .Values.nodeSelector }}
|
||||||
@@ -76,3 +81,9 @@ spec:
|
|||||||
tolerations:
|
tolerations:
|
||||||
{{ toYaml . | indent 8 }}
|
{{ toYaml . | indent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{ if .Values.sharedDataFolder.enabled }}
|
||||||
|
volumes:
|
||||||
|
- name: shared-data-volume
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: {{ template "tatort.fullname" . }}-shared-data
|
||||||
|
{{ end }}
|
||||||
|
|||||||
26
tatort/tatort/templates/pvc.yaml
Normal file
26
tatort/tatort/templates/pvc.yaml
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
{{- if .Values.sharedDataFolder.enabled }}
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: {{ template "tatort.fullname" . }}-shared-data
|
||||||
|
labels:
|
||||||
|
app: {{ template "tatort.name" . }}
|
||||||
|
chart: {{ template "tatort.chart" . }}
|
||||||
|
component: tatort
|
||||||
|
heritage: {{ .Release.Service }}
|
||||||
|
release: {{ .Release.Name }}
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
{{- if .Values.sharedDataFolder.accessMode }}
|
||||||
|
- {{ .Values.sharedDataFolder.accessMode }}
|
||||||
|
{{- else }}
|
||||||
|
- ReadWriteMany
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.sharedDataFolder.storageClass }}
|
||||||
|
storageClassName: {{ .Values.sharedDataFolder.storageClass | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.sharedDataFolder.resources }}
|
||||||
|
resources:
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
{{ end }}
|
||||||
Reference in New Issue
Block a user