24 lines
675 B
YAML
24 lines
675 B
YAML
|
---
|
||
|
apiVersion: v1
|
||
|
kind: PersistentVolumeClaim
|
||
|
metadata:
|
||
|
name: {{ .Release.Name }}-yugaware-storage
|
||
|
{{- if .Values.yugaware.storageAnnotations }}
|
||
|
annotations:
|
||
|
{{ toYaml .Values.yugaware.storageAnnotations | indent 4 }}
|
||
|
{{- end }}
|
||
|
labels:
|
||
|
app: {{ template "yugaware.name" . }}
|
||
|
chart: {{ template "yugaware.chart" . }}
|
||
|
release: {{ .Release.Name }}
|
||
|
heritage: {{ .Values.helm2Legacy | ternary "Tiller" (.Release.Service | quote) }}
|
||
|
spec:
|
||
|
accessModes:
|
||
|
- ReadWriteOnce
|
||
|
{{- if .Values.yugaware.storageClass }}
|
||
|
storageClassName: {{ .Values.yugaware.storageClass }}
|
||
|
{{- end }}
|
||
|
resources:
|
||
|
requests:
|
||
|
storage: {{ .Values.yugaware.storage }}
|