Skip to content

Commit

Permalink
update pvc
Browse files Browse the repository at this point in the history
  • Loading branch information
Saturn-V committed Oct 19, 2023
1 parent f63da88 commit 1c2eb92
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 6 deletions.
2 changes: 1 addition & 1 deletion helm/service/templates/pewpew.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
image: "{{ .Values.pewpew.image }}:{{ .Values.pewpew.tag }}"

volumeMounts:
- name: {{ .Values.pvc.name }}
- name: {{ .Values.pvc.claim }}
mountPath: /opt/pewpew/data
---
apiVersion: v1
Expand Down
23 changes: 19 additions & 4 deletions helm/service/templates/pvc.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,27 @@
apiVersion: v1
kind: PersistentVolumeClaim
kind: PersistentVolume
metadata:
name: {{ .Values.pvc.name }}
spec:
storageClassName: "" # Empty string must be explicitly set otherwise default StorageClass will be set
volumeName: {{ .Values.pvc.name }}
storageClassName: ""
capacity:
storage: 1Gi
accessModes:
- ReadWriteMany
claimRef:
name: {{ .Values.pvc.claim }}
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ .Values.pvc.claim }}
spec:
# Specify "" as the storageClassName so it matches the PersistentVolume's StorageClass.
# A nil storageClassName value uses the default StorageClass. For details, see
# https://kubernetes.io/docs/concepts/storage/persistent-volumes/#class-1
storageClassName: ""
accessModes:
- ReadWriteMany
resources:
requests:
storage: 1Gi
storage: 10Gi
3 changes: 2 additions & 1 deletion helm/service/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ adapter:
schedule: '"0 * * * *"'

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

0 comments on commit 1c2eb92

Please sign in to comment.