Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce ability to run without persistence #26

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 20 additions & 4 deletions geoserver/latest/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,10 @@ spec:
{{- end }}

volumeMounts:
{{- if .Values.persistence.datadir }}
- name: gs-datadir
mountPath: /var/geoserver/datadir
{{- end }}
- name: gs-memdumps
mountPath: $(GEOSERVER_HEAP_DUMP_DIR)
- name: gs-audits
Expand Down Expand Up @@ -198,8 +200,10 @@ spec:
mountPath: /usr/local/tomcat/conf/server.xml
subPath: server.xml
readOnly: true
{{- if .Values.persistence.datadir }}
- name: gs-datadir
mountPath: /var/geoserver/datadir
{{- end }}
- name: gs-memdumps
mountPath: /var/geoserver/memory_dumps
- name: gs-audits
Expand Down Expand Up @@ -253,25 +257,37 @@ spec:
persistentVolumeClaim:
claimName: {{ include "geoserver.fullname" . }}-datadir
{{- end }}
{{- if .Values.persistence.memdumps }}
- name: gs-memdumps
{{- if .Values.persistence.memdumps }}
persistentVolumeClaim:
claimName: {{ include "geoserver.fullname" . }}-memdumps
{{ else }}
hostPath:
path: /var/geoserver/memdumps
{{- end }}
{{- if .Values.persistence.logs }}
- name: gs-logs
{{- if .Values.persistence.logs }}
persistentVolumeClaim:
claimName: {{ include "geoserver.fullname" . }}-logs
{{ else }}
hostPath:
path: /var/geoserver/logs
{{- end }}
{{- if .Values.persistence.tomcatlogs }}
- name: gs-tomcatlogs
{{- if .Values.persistence.tomcatlogs }}
persistentVolumeClaim:
claimName: {{ include "geoserver.fullname" . }}-tomcatlogs
{{ else }}
hostPath:
path: /var/geoserver/tomcatlogs/
{{- end }}
{{- if .Values.persistence.audits }}
- name: gs-audits
{{- if .Values.persistence.audits }}
persistentVolumeClaim:
claimName: {{ include "geoserver.fullname" . }}-audits
{{ else }}
hostPath:
path: /var/geoserver/audits
{{- end }}
- name: context
secret:
Expand Down