Created
August 9, 2019 10:53
-
-
Save ronamosa/0a2c22d31d4e958eabe857236eea0ca3 to your computer and use it in GitHub Desktop.
PostgreSQL persistentVolume.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) }} | |
kind: PersistentVolume | |
apiVersion: v1 | |
metadata: | |
name: pv-{{ template "postgresql.name" . }}-data | |
labels: | |
app: {{ template "postgresql.name" . }} | |
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" | |
release: "{{ .Release.Name }}" | |
heritage: "{{ .Release.Service }}" | |
spec: | |
capacity: | |
storage: {{ .Values.persistence.size }} | |
storageClassName: {{ .Values.persistence.storageClassName | quote }} | |
azureDisk: | |
kind: {{ .Values.azureDisk.kind | quote }} | |
diskName: {{ .Values.azureDisk.diskName | quote }} | |
diskURI: {{ .Values.azureDisk.diskURI | quote }} | |
accessModes: | |
- {{ .Values.persistence.accessMode | quote }} | |
{{- end }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment