Commit 517cbae 1 parent 9d30494 commit 517cbae Copy full SHA for 517cbae
File tree 3 files changed +23
-8
lines changed
charts/rdkitCatridgePostgres
3 files changed +23
-8
lines changed Original file line number Diff line number Diff line change 1
1
apiVersion : v2
2
2
name : rdkitcatridgepostgres
3
3
description : A Helm chart for Kubernetes
4
+ maintainers :
5
+ - name : Nisha Sharma
6
+ email : nisha.sharma@uni-jena.de
4
7
5
8
# A chart can be either an 'application' or a 'library' chart.
6
9
#
@@ -15,7 +18,7 @@ type: application
15
18
# This is the chart version. This version number should be incremented each time you make changes
16
19
# to the chart and its templates, including the app version.
17
20
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18
- version : 0.1 .0
21
+ version : 0.2 .0
19
22
20
23
# This is the version number of the application being deployed. This version number should be
21
24
# incremented each time you make changes to the application. Versions are not expected to
Original file line number Diff line number Diff line change 27
27
{{- end }}
28
28
securityContext :
29
29
{{- toYaml .Values.podSecurityContext | nindent 8 }}
30
+ {{- if .Values.persistence.existingClaim }}
31
+ volumes :
32
+ - name : {{ .Values.volume.name }}
33
+ persistentVolumeClaim :
34
+ claimName : {{ .Values.persistence.existingClaim }}
35
+ {{- end }}
30
36
containers :
31
37
- name : {{ .Chart.Name }}
32
38
securityContext :
@@ -44,11 +50,15 @@ spec:
44
50
- name : {{ .Values.volume.name }}
45
51
mountPath : {{ .Values.volume.mountpath }}
46
52
subPath : postgres
53
+ {{- if not .Values.persistence.existingClaim }}
47
54
volumeClaimTemplates :
48
- - metadata :
49
- name : {{ .Values.volume.name }}
55
+ - apiVersion : v1
56
+ kind : PersistentVolumeClaim
57
+ metadata :
58
+ name : {{ .Values.volume.name }}
50
59
spec :
51
- accessModes : [ "ReadWriteOnce" ]
60
+ accessModes : [ "ReadWriteOnce" ]
52
61
resources :
53
62
requests :
54
63
storage : {{ .Values.volume.size }}
64
+ {{- end }}
Original file line number Diff line number Diff line change @@ -45,8 +45,8 @@ EnvSecretRef:
45
45
46
46
auth :
47
47
pgPassword : secret
48
- db : test
49
- user : test
48
+ db : db
49
+ user : user
50
50
postgresPassword : secret
51
51
52
52
ingress :
@@ -81,9 +81,11 @@ volume:
81
81
name : postgres-data
82
82
mountpath : /var/lib/postgresql/data
83
83
size : 5Gi
84
- accessModes : ReadWriteMany
85
84
hostPath : /mnt/data
86
- storageClass : standard
85
+
86
+ # # Name of an existing PVC to use.
87
+ persistence :
88
+ existingClaim :
87
89
88
90
autoscaling :
89
91
enabled : false
You can’t perform that action at this time.
0 commit comments