From 8033f97ec5ff38c2bd7f0018c795071d06d8f304 Mon Sep 17 00:00:00 2001 From: Paul Glass Date: Fri, 18 Aug 2023 10:53:05 -0500 Subject: [PATCH] Mount /tmp to volume for snapshots --- charts/consul/templates/server-statefulset.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/charts/consul/templates/server-statefulset.yaml b/charts/consul/templates/server-statefulset.yaml index 2b25182b96..7e6d5789a9 100644 --- a/charts/consul/templates/server-statefulset.yaml +++ b/charts/consul/templates/server-statefulset.yaml @@ -226,6 +226,8 @@ spec: {{- toYaml .Values.server.securityContext | nindent 8 }} {{- end }} volumes: + - name: tmp + emptyDir: {} - name: config configMap: name: {{ template "consul.fullname" . }}-server-config @@ -562,6 +564,9 @@ spec: mountPath: /trusted-cas readOnly: false {{- end }} + - name: tmp + mountPath: /tmp + readOnly: false ports: {{- if (or (not .Values.global.tls.enabled) (not .Values.global.tls.httpsOnly)) }} - name: http