mirror of
https://github.com/2martens/cloud-configuration.git
synced 2026-10-17 16:46:51 +02:00
fix(template): Mount emptyDir volume for tmp directory
This commit is contained in:
@@ -58,6 +58,11 @@ spec:
|
||||
- name: {{ .name }}
|
||||
value: {{ tpl (quote .value) $ }}
|
||||
{{- end }}
|
||||
{{- if .Values.application.isSpring }}
|
||||
volumeMounts:
|
||||
- mountPath: /tmp
|
||||
name: tmp
|
||||
{{- end }}
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: {{ .Values.application.port }}
|
||||
@@ -111,6 +116,12 @@ spec:
|
||||
tolerations:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- if .Values.application.isSpring }}
|
||||
volumes:
|
||||
- name: tmp
|
||||
emptyDir:
|
||||
medium: Memory
|
||||
{{- end }}
|
||||
{{- with .Values.podSpec }}
|
||||
{{- toYaml . | nindent 6 }}
|
||||
{{- end }}
|
||||
|
||||
Reference in New Issue
Block a user