Skip to content

Commit a8dc074

Browse files
authored
Merge pull request #79 from opencadc/cavern-probe-config
fix: make probes configurable
2 parents ee50119 + 0603626 commit a8dc074

File tree

5 files changed

+31
-13
lines changed

5 files changed

+31
-13
lines changed

helm/applications/cavern/CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
# CHANGELOG for Cavern User Storage (Chart 0.7.0)
1+
# CHANGELOG for Cavern User Storage (Chart 0.7.1)
2+
3+
## 2025.09.22 (0.7.1)
4+
- Make liveness and readiness probes configurable.
25

36
## 2025.09.09 (0.7.0)
47
- Feature: Support `admin-api-key` (`.deployment.cavern.adminAPIKeys`) for trusted admin access.

helm/applications/cavern/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.7.0
18+
version: 0.7.1
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

helm/applications/cavern/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ $ curl https://myhost.example.com/cavern/availability
101101
| `deployment.resources.requests.cpu` | CPU request for the Cavern container | `500m` |
102102
| `deployment.resources.limits.memory` | Memory limit for the Cavern container | `1Gi` |
103103
| `deployment.resources.limits.cpu` | CPU limit for the Cavern container | `500m` |
104+
| `livenessProbe` | Configure the liveness probe check | `{}` |
105+
| `readinessProbe` | Configure the readiness probe check | `{}` |
104106
| `tolerations` | Tolerations to apply to the Cavern Pod | `[]` |
105107
| `secrets` | Secrets to create for the Cavern service, such as CA certificates | `{}` |
106108
| `service.cavern.extraPorts` | Extra ports to expose for the Cavern service | `[]` |

helm/applications/cavern/templates/cavern-tomcat-deployment.yaml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -59,18 +59,14 @@ spec:
5959
{{- with .Values.deployment.cavern.extraVolumeMounts }}
6060
{{- toYaml . | nindent 8 }}
6161
{{- end }}
62-
readinessProbe:
63-
httpGet:
64-
path: {{ printf "%s/%s" .Values.deployment.cavern.endpoint "availability" }}
65-
port: {{ $containerPort }}
66-
initialDelaySeconds: 15
67-
periodSeconds: 300
62+
{{- with .Values.livenessProbe }}
6863
livenessProbe:
69-
httpGet:
70-
path: {{ printf "%s/%s" .Values.deployment.cavern.endpoint "availability" }}
71-
port: {{ $containerPort }}
72-
initialDelaySeconds: 25
73-
periodSeconds: 300
64+
{{- toYaml . | nindent 10 }}
65+
{{- end }}
66+
{{- with .Values.readinessProbe }}
67+
readinessProbe:
68+
{{- toYaml . | nindent 10 }}
69+
{{- end }}
7470
{{- with .Values.deployment.extraHosts }}
7571
hostAliases:
7672
{{- range $extraHost := . }}

helm/applications/cavern/values.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,23 @@ deployment:
164164
#
165165
tolerations: []
166166

167+
# This is to setup the liveness and readiness probes more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
168+
# Example:
169+
# livenessProbe:
170+
# httpGet:
171+
# path: /cavern/availability
172+
# port: 8080
173+
# initialDelaySeconds: 60
174+
livenessProbe: {}
175+
176+
# Example:
177+
# readinessProbe:
178+
# httpGet:
179+
# path: /cavern/availability
180+
# port: 8080
181+
# initialDelaySeconds: 30
182+
readinessProbe: {}
183+
167184
secrets:
168185
# Uncomment to enable local or self-signed CA certificates for your domain to be trusted.
169186
# cavern-cacert-secret:

0 commit comments

Comments
 (0)