Skip to content

Commit

Permalink
geoserver-lb - make GS' livenessProbe configureable (#21)
Browse files Browse the repository at this point in the history
* geoserver-lb - make GS' livenessProbe configureable

By default, the liveness probe for the geoserver slave deployments is
configured to hit a WMTS GetCapabilities. On platform containing a lot
of data, this can lead to produce huge XML documents (e.g. 5.5MB on
DataGrandEst), which is not relevant for a healthcheck.

This commit aims to make it configureable so that we can use more
convenient endpoint to test liveness.

* upgrade geoserver-lb version
  • Loading branch information
pmauduit authored Apr 4, 2024
1 parent 47cfded commit beab3f3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion geoserver-lb/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ name: geoserver-lb
apiVersion: v2
description: A Helm chart for deploying geoserver loadbalanced
type: application
version: 0.6.3
version: 0.6.4
appVersion: "22.0.4"
9 changes: 1 addition & 8 deletions geoserver-lb/templates/geoserver-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -204,14 +204,7 @@ spec:
image: {{ .Values.geoserver.docker_image }}
imagePullPolicy: Always
livenessProbe:
failureThreshold: 3
httpGet:
path: /geoserver/gwc/service/wmts?SERVICE=WMTS&REQUEST=GetCapabilities
port: 8080
scheme: HTTP
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
{{- .Values.geoserver.livenessProbe | toYaml | nindent 10 }}
ports:
- containerPort: 8080
name: http-proxy
Expand Down
9 changes: 9 additions & 0 deletions geoserver-lb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@ geoserver:
# This is the url to the service provided by the geOrchestra helm chart
master_svc_url: georchestra-geoserver-svc:8080
docker_image: registry.com/org/client-configuration/geoserver:22.0.4
livenessProbe:
httpGet:
path: /geoserver/gwc/service/wmts?SERVICE=WMTS&REQUEST=GetCapabilities
port: 8080
scheme: HTTP
periodSeconds: 10
failureThreshold: 3
successThreshold: 1
timeoutSeconds: 5
# pull_secret: ghcr-registry-secret
replicas: 1
jetty_monitoring: false
Expand Down

0 comments on commit beab3f3

Please sign in to comment.