From 93ea7a7ec1c65066d8f84efe0ce4ae6755e86e90 Mon Sep 17 00:00:00 2001 From: Saturn-V Date: Wed, 18 Oct 2023 20:10:53 -0700 Subject: [PATCH] persistent volume claims: lets try again --- helm/service/templates/adapter.yaml | 9 +++++++-- helm/service/templates/pewpew.yaml | 7 ++++++- helm/service/values.yaml | 1 + 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/helm/service/templates/adapter.yaml b/helm/service/templates/adapter.yaml index ff459bc..05c464a 100644 --- a/helm/service/templates/adapter.yaml +++ b/helm/service/templates/adapter.yaml @@ -20,7 +20,12 @@ spec: image: "{{ .Values.adapter.image }}:{{ .Values.adapter.tag }}" volumeMounts: - - name: {{ .Values.pvc.name }} + - name: {{ .Values.pvc.mount }} mountPath: /adapter/data - + + volumes: + - name: {{ .Values.pvc.mount }} + persistentVolumeClaim: + claimName: {{ .Values.pvc.claim }} + restartPolicy: Never \ No newline at end of file diff --git a/helm/service/templates/pewpew.yaml b/helm/service/templates/pewpew.yaml index 040e7f0..1747f79 100644 --- a/helm/service/templates/pewpew.yaml +++ b/helm/service/templates/pewpew.yaml @@ -17,8 +17,13 @@ spec: image: "{{ .Values.pewpew.image }}:{{ .Values.pewpew.tag }}" volumeMounts: - - name: {{ .Values.pvc.claim }} + - name: {{ .Values.pvc.mount }} mountPath: /opt/pewpew/data + + volumes: + - name: {{ .Values.pvc.mount }} + persistentVolumeClaim: + claimName: {{ .Values.pvc.claim }} --- apiVersion: v1 kind: Service diff --git a/helm/service/values.yaml b/helm/service/values.yaml index d291c40..66a330a 100644 --- a/helm/service/values.yaml +++ b/helm/service/values.yaml @@ -14,5 +14,6 @@ adapter: schedule: '"0 * * * *"' pvc: + mount: pewpew-adapter-volume claim: pewpew-adapter-pvc name: pewpew-adapter-pv