X-Git-Url: https://git.arvados.org/arvados-k8s.git/blobdiff_plain/792939ae237d5904583477a73fdce8bf00568590..5236aa391c0e93691f4543bc06f204592513cbf1:/charts/arvados/templates/postgres-pvc.yaml diff --git a/charts/arvados/templates/postgres-pvc.yaml b/charts/arvados/templates/postgres-pvc.yaml new file mode 100644 index 0000000..85bcbc2 --- /dev/null +++ b/charts/arvados/templates/postgres-pvc.yaml @@ -0,0 +1,22 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 + +{{- if .Values.postgres.persistence.enabled }} +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: {{ .Release.Name }}-postgres-pvc + labels: + app: {{ template "arvados.name" . }} + chart: {{ template "arvados.chart" . }} + release: {{ .Release.Name }} + heritage: {{ .Release.Service }} +spec: + storageClassName: {{ .Values.postgres.persistence.storageClass }} + accessModes: + - ReadWriteOnce + resources: + requests: + storage: {{ .Values.postgres.persistence.size }} +{{- end }} \ No newline at end of file