Skip to content

Commit

Permalink
keep pvc resources by default (#65)
Browse files Browse the repository at this point in the history
* keep pvc resources by default

* persist PVC of postgresql too
  • Loading branch information
edevosc2c authored Nov 16, 2023
1 parent df1ef82 commit cb47c25
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions templates/geonetwork/elasticsearch/es-data-pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ metadata:
labels:
{{- include "georchestra.labels" . | nindent 4 }}
app.kubernetes.io/component: {{ include "georchestra.fullname" . }}-gn4-elasticsearch
helm.sh/resource-policy: "keep"
spec:
accessModes:
- ReadWriteOnce
Expand Down
1 change: 1 addition & 0 deletions templates/geonetwork/geonetwork-datadir-pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ metadata:
labels:
{{- include "georchestra.labels" . | nindent 4 }}
app.kubernetes.io/component: {{ include "georchestra.fullname" . }}-geonetwork
helm.sh/resource-policy: "keep"
spec:
accessModes:
- ReadWriteOnce
Expand Down
1 change: 1 addition & 0 deletions templates/geoserver/geoserver-datadir-pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ metadata:
labels:
{{- include "georchestra.labels" . | nindent 4 }}
app.kubernetes.io/component: {{ include "georchestra.fullname" . }}-geoserver
helm.sh/resource-policy: "keep"
spec:
accessModes:
- ReadWriteOnce
Expand Down
1 change: 1 addition & 0 deletions templates/geoserver/geoserver-geodata-pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ metadata:
labels:
{{- include "georchestra.labels" . | nindent 4 }}
app.kubernetes.io/component: {{ include "georchestra.fullname" . }}-geoserver
helm.sh/resource-policy: "keep"
spec:
accessModes:
- ReadWriteOnce
Expand Down
1 change: 1 addition & 0 deletions templates/geoserver/geoserver-tiles-pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ metadata:
labels:
{{- include "georchestra.labels" . | nindent 4 }}
app.kubernetes.io/component: {{ include "georchestra.fullname" . }}-geoserver
helm.sh/resource-policy: "keep"
spec:
accessModes:
- ReadWriteOnce
Expand Down
2 changes: 2 additions & 0 deletions templates/ldap/openldap-pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ metadata:
labels:
{{- include "georchestra.labels" . | nindent 4 }}
app.kubernetes.io/component: {{ include "georchestra.fullname" . }}-ldap
helm.sh/resource-policy: "keep"
spec:
accessModes:
- ReadWriteOnce
Expand All @@ -26,6 +27,7 @@ metadata:
labels:
{{- include "georchestra.labels" . | nindent 4 }}
app.kubernetes.io/component: {{ include "georchestra.fullname" . }}-ldap
helm.sh/resource-policy: "keep"
spec:
accessModes:
- ReadWriteOnce
Expand Down
1 change: 1 addition & 0 deletions templates/mapstore/mapstore-pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ metadata:
labels:
{{- include "georchestra.labels" . | nindent 4 }}
app.kubernetes.io/component: {{ include "georchestra.fullname" . }}-mapstore
helm.sh/resource-policy: "keep"
spec:
accessModes:
- ReadWriteOnce
Expand Down
2 changes: 2 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,8 @@ database:
ssl: false
username: georchestra
primary: # section of parameters for builtin database
persistentVolumeClaimRetentionPolicy:
enabled: true
extraVolumeMounts:
- name: "00-initsql"
mountPath: "/docker-entrypoint-initdb.d/00_init.sql"
Expand Down

0 comments on commit cb47c25

Please sign in to comment.