Skip to content

Commit af7f2ca

Browse files
committed
chore: improve probe configurability
1 parent f6fb5b8 commit af7f2ca

File tree

4 files changed

+36
-4
lines changed

4 files changed

+36
-4
lines changed

charts/testkube-cloud-api/templates/deployment.yaml

+18
Original file line numberDiff line numberDiff line change
@@ -477,16 +477,34 @@ spec:
477477
containerPort: {{ .Values.scim.port }}
478478
protocol: TCP
479479
{{- end }}
480+
{{- if .Values.customLivenessProbe }}
481+
livenessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.customLivenessProbe "context" $) | nindent 12 }}
482+
{{- else if .Values.livenessProbe.enabled }}
480483
livenessProbe:
481484
httpGet:
482485
path: /health
483486
scheme: {{ if .Values.api.tls.serveHTTPS }}HTTPS{{ else }}HTTP{{ end }}
484487
port: {{ if .Values.api.tls.serveHTTPS }}https{{ else }}http{{ end }}
488+
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}
489+
periodSeconds: {{ .Values.livenessProbe.periodSeconds }}
490+
timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }}
491+
successThreshold: {{ .Values.livenessProbe.successThreshold }}
492+
failureThreshold: {{ .Values.livenessProbe.failureThreshold }}
493+
{{- end }}
494+
{{- if .Values.customReadinessProbe }}
495+
readinessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.customReadinessProbe "context" $) | nindent 12 }}
496+
{{- else if .Values.readinessProbe.enabled }}
485497
readinessProbe:
486498
httpGet:
487499
path: /health
488500
scheme: {{ if .Values.api.tls.serveHTTPS }}HTTPS{{ else }}HTTP{{ end }}
489501
port: {{ if .Values.api.tls.serveHTTPS }}https{{ else }}http{{ end }}
502+
initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
503+
periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
504+
timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }}
505+
successThreshold: {{ .Values.readinessProbe.successThreshold }}
506+
failureThreshold: {{ .Values.readinessProbe.failureThreshold }}
507+
{{- end }}
490508
resources:
491509
{{- toYaml .Values.resources | nindent 12 }}
492510
volumeMounts:

charts/testkube-cloud-api/values.yaml

+14
Original file line numberDiff line numberDiff line change
@@ -499,3 +499,17 @@ podDisruptionBudget:
499499
minAvailable: ""
500500
# -- (int/percentage) Number or percentage of pods that can be unavailable.
501501
maxUnavailable: ""
502+
readinessProbe:
503+
enabled: true
504+
initialDelaySeconds: 0
505+
periodSeconds: 10
506+
timeoutSeconds: 1
507+
successThreshold: 1
508+
failureThreshold: 3
509+
livenessProbe:
510+
enabled: true
511+
initialDelaySeconds: 0
512+
periodSeconds: 10
513+
timeoutSeconds: 1
514+
successThreshold: 1
515+
failureThreshold: 3

charts/testkube-enterprise/Chart.lock

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ dependencies:
1616
version: 1.13.0
1717
- name: testkube
1818
repository: https://kubeshop.github.io/helm-charts
19-
version: 2.1.211
19+
version: 2.1.212
2020
- name: dex
2121
repository: file://./charts/dex
2222
version: 0.19.1-9
@@ -29,5 +29,5 @@ dependencies:
2929
- name: minio
3030
repository: file://./charts/minio
3131
version: 14.8.3-3
32-
digest: sha256:9e4117e0925e537974428f24519a1a2d34fe1242be892a7e278e3cc17a02942f
33-
generated: "2025-04-09T14:45:16.429208381Z"
32+
digest: sha256:2f4c3c45431cb67c4df01cc74d11ff4eed0f7d42d1f01907503ebfe0933ae1e2
33+
generated: "2025-04-09T16:57:27.112075+02:00"

charts/testkube-enterprise/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ dependencies:
2424
condition: testkube-ai-service.enabled
2525
- name: testkube
2626
alias: testkube-agent
27-
version: 2.1.211
27+
version: 2.1.212
2828
repository: https://kubeshop.github.io/helm-charts
2929
condition: testkube-agent.enabled
3030
- name: dex

0 commit comments

Comments
 (0)