Skip to content

Commit

Permalink
persistent volume claims: lets try again
Browse files Browse the repository at this point in the history
  • Loading branch information
Saturn-V committed Oct 19, 2023
1 parent 1c2eb92 commit 93ea7a7
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
9 changes: 7 additions & 2 deletions helm/service/templates/adapter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
7 changes: 6 additions & 1 deletion helm/service/templates/pewpew.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions helm/service/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ adapter:
schedule: '"0 * * * *"'

pvc:
mount: pewpew-adapter-volume
claim: pewpew-adapter-pvc
name: pewpew-adapter-pv

0 comments on commit 93ea7a7

Please sign in to comment.