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