Skip to content

Commit

Permalink
fix(molgenis): use PVC for postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
fdlk committed May 31, 2019
1 parent bce9813 commit 8b299e3
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/molgenis/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
appVersion: "8"
description: MOLGENIS - helm stack
name: molgenis
version: 1.3.1
version: 1.3.2
sources:
- https://github.com/molgenis/molgenis-ops-helm.git
icon: https://raw.githubusercontent.com/molgenis/molgenis-ops-helm/master/charts/molgenis/catalogIcon-molgenis.png
Expand Down
Binary file modified charts/molgenis/charts/molgenis-elasticsearch-1.0.0.tgz
Binary file not shown.
Binary file removed charts/molgenis/charts/postgresql-3.10.1.tgz
Binary file not shown.
Binary file added charts/molgenis/charts/postgresql-5.2.1.tgz
Binary file not shown.
6 changes: 3 additions & 3 deletions charts/molgenis/requirements.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ dependencies:
version: 1.0.0
- name: postgresql
repository: https://kubernetes-charts.storage.googleapis.com
version: 3.10.1
version: 5.2.1
- name: minio
repository: https://kubernetes-charts.storage.googleapis.com
version: 2.4.3
digest: sha256:a87ed47ce0495cdac57b010713f854ac9ec2a1969be62313dbe987bded124c75
generated: 2019-02-21T12:55:41.107387282+01:00
digest: sha256:7200cf4de3cc6825fb4b617e6a5074a3b569f9d5b0c6fef3cbb96996daf56a67
generated: "2019-05-31T18:12:13.378175+02:00"
2 changes: 1 addition & 1 deletion charts/molgenis/requirements.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ dependencies:
repository: https://registry.molgenis.org/repository/helm
condition: molgenis-elasticsearch.enabled
- name: postgresql
version: 3.10.1
version: 5.2.1
repository: https://kubernetes-charts.storage.googleapis.com
condition: postgres.enabled
- name: minio
Expand Down
24 changes: 24 additions & 0 deletions charts/molgenis/templates/postgres-pvc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{{- if and .Values.postgresql.persistence.enabled }}
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: postgres-pvc
labels:
app.kubernetes.io/name: postgres-pvc
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
helm.sh/chart: {{ include "molgenis.chart" . }}
spec:
accessModes:
- {{ .Values.postgresql.persistence.accessMode | quote }}
resources:
requests:
storage: {{ .Values.postgresql.persistence.size | quote }}
{{- if .Values.postgresql.persistence.storageClass }}
{{- if (eq "-" .Values.postgresql.persistence.storageClass) }}
storageClassName: ""
{{- else }}
storageClassName: "{{ .Values.postgresql.persistence.storageClass }}"
{{- end }}
{{- end }}
{{- end }}
2 changes: 2 additions & 0 deletions charts/molgenis/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ postgresql:
postgresqlPassword: molgenis
postgresqlDatabase: molgenis
persistence:
existingClaim: postgres-pvc
size: 5Gi
accessMode: ReadWriteOnce
resources:
requests:
cpu:
Expand Down

0 comments on commit 8b299e3

Please sign in to comment.