From 4041fc67cb162626e9e6a25a7acafc8e4e980dd5 Mon Sep 17 00:00:00 2001 From: Liviu Damian Date: Wed, 27 Sep 2023 17:03:24 +0300 Subject: [PATCH] fix: Helm - add writable emptydir volumes (#57) --- helm/fuel-explorer/Chart.yaml | 2 +- helm/fuel-explorer/templates/deployment.yaml | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/helm/fuel-explorer/Chart.yaml b/helm/fuel-explorer/Chart.yaml index 20d5d345f..d61bb8114 100644 --- a/helm/fuel-explorer/Chart.yaml +++ b/helm/fuel-explorer/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.1.0 +version: 0.1.1 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/helm/fuel-explorer/templates/deployment.yaml b/helm/fuel-explorer/templates/deployment.yaml index 3eaa52cf3..88f6a654a 100644 --- a/helm/fuel-explorer/templates/deployment.yaml +++ b/helm/fuel-explorer/templates/deployment.yaml @@ -40,8 +40,14 @@ spec: - name: http containerPort: {{ .Values.service.port }} protocol: TCP + volumeMounts: + - mountPath: /home/node/.cache + name: node-cache resources: {{- toYaml .Values.resources | nindent 12 }} + volumes: + - name: node-cache + emptyDir: {} {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }}