From 4d611eebffe0e58de5fb9a1bd525ed4d4bf9c5ac Mon Sep 17 00:00:00 2001 From: Ultradesu Date: Wed, 4 Feb 2026 16:36:57 +0200 Subject: [PATCH] Added probes to chart vars --- yacy/Chart.yaml | 2 +- yacy/templates/deployment.yaml | 42 +++++++++++++++++++--------------- yacy/values.yaml | 35 ++++++++++++++++++++++++++++ 3 files changed, 60 insertions(+), 19 deletions(-) diff --git a/yacy/Chart.yaml b/yacy/Chart.yaml index 0b970a1..dd4b0cb 100644 --- a/yacy/Chart.yaml +++ b/yacy/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: yacy description: A Helm chart for YaCy - a distributed peer-to-peer search engine type: application -version: 0.1.0 +version: 0.1.1 appVersion: "1.930" icon: https://yacy.net/images/yacy-logo.png home: https://yacy.net/ diff --git a/yacy/templates/deployment.yaml b/yacy/templates/deployment.yaml index 6d31745..08b8e16 100644 --- a/yacy/templates/deployment.yaml +++ b/yacy/templates/deployment.yaml @@ -61,30 +61,36 @@ spec: - name: https containerPort: 8443 protocol: TCP + {{- if .Values.healthchecks.startupProbe.enabled }} startupProbe: httpGet: - path: / - port: http - initialDelaySeconds: 30 - periodSeconds: 10 - timeoutSeconds: 5 - failureThreshold: 12 + path: {{ .Values.healthchecks.startupProbe.httpGet.path }} + port: {{ .Values.healthchecks.startupProbe.httpGet.port }} + initialDelaySeconds: {{ .Values.healthchecks.startupProbe.initialDelaySeconds }} + periodSeconds: {{ .Values.healthchecks.startupProbe.periodSeconds }} + timeoutSeconds: {{ .Values.healthchecks.startupProbe.timeoutSeconds }} + failureThreshold: {{ .Values.healthchecks.startupProbe.failureThreshold }} + {{- end }} + {{- if .Values.healthchecks.livenessProbe.enabled }} livenessProbe: httpGet: - path: /api/status_p.xml - port: http - initialDelaySeconds: 90 - periodSeconds: 20 - timeoutSeconds: 10 - failureThreshold: 6 + path: {{ .Values.healthchecks.livenessProbe.httpGet.path }} + port: {{ .Values.healthchecks.livenessProbe.httpGet.port }} + initialDelaySeconds: {{ .Values.healthchecks.livenessProbe.initialDelaySeconds }} + periodSeconds: {{ .Values.healthchecks.livenessProbe.periodSeconds }} + timeoutSeconds: {{ .Values.healthchecks.livenessProbe.timeoutSeconds }} + failureThreshold: {{ .Values.healthchecks.livenessProbe.failureThreshold }} + {{- end }} + {{- if .Values.healthchecks.readinessProbe.enabled }} readinessProbe: httpGet: - path: / - port: http - initialDelaySeconds: 30 - periodSeconds: 10 - timeoutSeconds: 5 - failureThreshold: 6 + path: {{ .Values.healthchecks.readinessProbe.httpGet.path }} + port: {{ .Values.healthchecks.readinessProbe.httpGet.port }} + initialDelaySeconds: {{ .Values.healthchecks.readinessProbe.initialDelaySeconds }} + periodSeconds: {{ .Values.healthchecks.readinessProbe.periodSeconds }} + timeoutSeconds: {{ .Values.healthchecks.readinessProbe.timeoutSeconds }} + failureThreshold: {{ .Values.healthchecks.readinessProbe.failureThreshold }} + {{- end }} resources: {{- toYaml .Values.resources | nindent 12 }} volumeMounts: diff --git a/yacy/values.yaml b/yacy/values.yaml index 53033f5..7e312b7 100644 --- a/yacy/values.yaml +++ b/yacy/values.yaml @@ -97,6 +97,41 @@ resources: cpu: 500m memory: 512Mi +# Health check probes configuration +healthchecks: + # Startup probe configuration + startupProbe: + enabled: true + httpGet: + path: / + port: http + initialDelaySeconds: 30 + periodSeconds: 10 + timeoutSeconds: 5 + failureThreshold: 12 + + # Liveness probe configuration + livenessProbe: + enabled: true + httpGet: + path: / + port: http + initialDelaySeconds: 90 + periodSeconds: 20 + timeoutSeconds: 10 + failureThreshold: 6 + + # Readiness probe configuration + readinessProbe: + enabled: true + httpGet: + path: / + port: http + initialDelaySeconds: 30 + periodSeconds: 10 + timeoutSeconds: 5 + failureThreshold: 6 + # Persistence for YaCy DATA directory persistence: enabled: true