Skip to content

Commit

Permalink
persistent volume claim
Browse files Browse the repository at this point in the history
  • Loading branch information
mwangggg committed Aug 22, 2023
1 parent 541adad commit 63ed6a3
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
7 changes: 7 additions & 0 deletions charts/cryostat/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -164,5 +164,12 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
volumes:
{{- if .Values.pvc.enabled }}
- name: {{ .Chart.Name }}
persistentVolumeClaim:
claimName: {{ .Release.Name }}-persistent-volumeclaim
{{- end }}
{{- if not .Values.pvc.enabled }}
- name: {{ .Chart.Name }}
emptyDir: {}
{{- end }}
10 changes: 10 additions & 0 deletions charts/cryostat/templates/persistent-volumelaim.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{{- if .Values.pvc.enabled }}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ .Release.Name }}-persistent-volumeclaim
spec:
resources:
requests:
storage: {{ .Values.pvc.storage }}
{{- end }}
6 changes: 6 additions & 0 deletions charts/cryostat/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -188,3 +188,9 @@ tolerations: []

## @param affinity [object] Affinity for the Cryostat Pod. See: [Affinity](https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#scheduling)
affinity: {}

pvc:
## @param pvc.enabled Specify whether to use persistentVolumeClaim or EmptyDir storage
enabled: false
## @param pvc.storage Storage size to request for the persistentVolumeClaim
storage: 500Mi

0 comments on commit 63ed6a3

Please sign in to comment.