From b302eefa85081e3b28882c2c8939223a30f9fc4f Mon Sep 17 00:00:00 2001 From: Jonathan Ervine Date: Mon, 27 Jul 2020 20:49:17 +0800 Subject: [PATCH] Adding tempaltes cache volume --- watcher/Chart.yaml | 2 +- watcher/templates/statefulset.yaml | 4 ++++ watcher/values.yaml | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/watcher/Chart.yaml b/watcher/Chart.yaml index afc00b5..d818cb7 100644 --- a/watcher/Chart.yaml +++ b/watcher/Chart.yaml @@ -14,7 +14,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. -version: 0.1.5 +version: 0.1.6 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. diff --git a/watcher/templates/statefulset.yaml b/watcher/templates/statefulset.yaml index b4b9567..a8b0dff 100644 --- a/watcher/templates/statefulset.yaml +++ b/watcher/templates/statefulset.yaml @@ -58,6 +58,8 @@ spec: - name: watcher-config mountPath: /config/templates subPath: templates + - name: templates-cache + mountPath: /watcher3/templates/cache - name: watcher-media-pv mountPath: /media - name: {{ .Chart.Name }}-sidecar @@ -80,6 +82,8 @@ spec: volumes: - name: app-local-config emptyDir: {} + - name: templates-cache + emptyDir: {} - name: watcher-media-pv persistentVolumeClaim: claimName: {{ .Values.mediaPvc }} diff --git a/watcher/values.yaml b/watcher/values.yaml index c50a90a..99a4a52 100644 --- a/watcher/values.yaml +++ b/watcher/values.yaml @@ -29,6 +29,7 @@ securityContext: readOnlyRootFilesystem: true runAsNonRoot: true runAsUser: 1003 + runAsGroup: 1003 service: type: ClusterIP