Skip to content

Commit

Permalink
allow customization of liveness and startup probe for mapstore
Browse files Browse the repository at this point in the history
  • Loading branch information
edevosc2c committed Jul 15, 2024
1 parent 9647fbf commit 1876828
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
10 changes: 8 additions & 2 deletions templates/geoserver/geoserver-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,9 @@ spec:
ports:
- containerPort: 8080
name: http-proxy
{{- if $webapp.custom_liveness_probe }}
{{ $webapp.custom_liveness_probe | toYaml | nindent 8 }}
{{- if $webapp.livenessProbe }}
livenessProbe:
{{ $webapp.livenessProbe | toYaml | nindent 10 }}
{{- else }}
livenessProbe:
httpGet:
Expand All @@ -205,11 +206,16 @@ spec:
periodSeconds: 10
timeoutSeconds: 5
{{- end }}
{{- if $webapp.startupProbe }}
startupProbe:
{{ $webapp.startupProbe | toYaml | nindent 10 }}
{{- else }}
startupProbe:
tcpSocket:
port: 8080
failureThreshold: 5
periodSeconds: 40
{{- else }}
{{- if $webapp.jetty_monitoring }}
- name: jmx-collectd
image: camptocamp/jmx-collectd:bullseye
Expand Down
10 changes: 10 additions & 0 deletions templates/mapstore/mapstore-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,27 @@ spec:
lifecycle:
{{- toYaml . | nindent 10 }}
{{- end }}
{{- if $webapp.livenessProbe }}
livenessProbe:
{{ $webapp.livenessProbe | toYaml | nindent 10 }}
{{- else }}
livenessProbe:
httpGet:
path: /mapstore/configs/config.json
port: 8080
periodSeconds: 10
{{- end }}
{{- if $webapp.startupProbe }}
startupProbe:
{{ $webapp.startupProbe | toYaml | nindent 10 }}
{{- else }}
startupProbe:
httpGet:
path: /mapstore/configs/config.json
port: 8080
failureThreshold: 5
periodSeconds: 15
{{- end }}
volumes:
- name: georchestra-datadir
emptyDir: {}
Expand Down
2 changes: 2 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ georchestra:
geoserver:
enabled: true
replicaCount: "1"
livenessProbe: []
startupProbe: []
docker_image: georchestra/geoserver:latest
jetty_monitoring: false
extra_environment: []
Expand Down

0 comments on commit 1876828

Please sign in to comment.