From c9a885b421e3cc997a0c0219fcc94b56dc516d2f Mon Sep 17 00:00:00 2001 From: alik-agaev Date: Tue, 7 Jan 2025 17:28:30 +0400 Subject: [PATCH] Create tmp volume for pganalyze collector (#53) --- charts/pganalyzer/templates/deployment.yaml | 8 ++++++++ charts/pganalyzer/values.yaml | 10 ++++++++++ 2 files changed, 18 insertions(+) diff --git a/charts/pganalyzer/templates/deployment.yaml b/charts/pganalyzer/templates/deployment.yaml index 4b1eac4..4d641f4 100644 --- a/charts/pganalyzer/templates/deployment.yaml +++ b/charts/pganalyzer/templates/deployment.yaml @@ -37,6 +37,14 @@ spec: name: {{ include "pganalyzer.fullname" . }}-env resources: {{- toYaml .Values.resources | nindent 12 }} + {{- with .Values.volumeMounts }} + volumeMounts: + {{- toYaml . | nindent 12 }} + {{- end }} + {{- with .Values.volumes }} + volumes: + {{- toYaml . | nindent 8 }} + {{- end }} {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} diff --git a/charts/pganalyzer/values.yaml b/charts/pganalyzer/values.yaml index b7fdde5..bc21e90 100644 --- a/charts/pganalyzer/values.yaml +++ b/charts/pganalyzer/values.yaml @@ -46,6 +46,16 @@ db: username: password: +volumes: + - name: tmp + emptyDir: + sizeLimit: 1Gi + +volumeMounts: + - mountPath: /tmp + name: tmp + subPath: tmp + extraEnv: {} nodeSelector: {}