diff --git a/helm/service/templates/pewpew.yaml b/helm/service/templates/pewpew.yaml index d6780ad..040e7f0 100644 --- a/helm/service/templates/pewpew.yaml +++ b/helm/service/templates/pewpew.yaml @@ -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 diff --git a/helm/service/templates/pvc.yaml b/helm/service/templates/pvc.yaml index 46c7749..8ef591a 100644 --- a/helm/service/templates/pvc.yaml +++ b/helm/service/templates/pvc.yaml @@ -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 \ No newline at end of file + storage: 10Gi \ No newline at end of file diff --git a/helm/service/values.yaml b/helm/service/values.yaml index 871162f..d291c40 100644 --- a/helm/service/values.yaml +++ b/helm/service/values.yaml @@ -14,4 +14,5 @@ adapter: schedule: '"0 * * * *"' pvc: - name: pewpew-adapter-pvc + claim: pewpew-adapter-pvc + name: pewpew-adapter-pv