From 505bf8d428f7b5031c7c2812c7272d9444d19d74 Mon Sep 17 00:00:00 2001 From: Phillip Wirth Date: Thu, 18 Jan 2024 14:47:26 +0100 Subject: [PATCH] BC-6292 using wget as the k8s http probes were not failing hopefully this is a workaround for a problem that we can not fully identifiy we can only pin point it to the k8s probe itself, if it is the k8s version, the affected version would be v1.26.11 --- .../templates/deployment.yml.j2 | 23 ++++++++----------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/ansible/roles/schulcloud-client-core/templates/deployment.yml.j2 b/ansible/roles/schulcloud-client-core/templates/deployment.yml.j2 index 982e6655a4..0c73435ca6 100644 --- a/ansible/roles/schulcloud-client-core/templates/deployment.yml.j2 +++ b/ansible/roles/schulcloud-client-core/templates/deployment.yml.j2 @@ -59,26 +59,23 @@ spec: - mountPath: /home/node/app/config/http-headers.js subPath: http-headers.js name: http-headers + # /login was chosen because on THR, the / redirects to TSP readinessProbe: - httpGet: - # /login was chosen because on THR, the / redirects to TSP - path: /login - port: 3100 - timeoutSeconds: 4 + exec: + command: ["wget", "--timeout", "4", "-O", "/dev/null", "http://localhost:3100/login"] + timeoutSeconds: 5 failureThreshold: 3 periodSeconds: 10 livenessProbe: - httpGet: - path: /login - port: 3100 - timeoutSeconds: 4 + exec: + command: ["wget", "--timeout", "4", "-O", "/dev/null", "http://localhost:3100/login"] + timeoutSeconds: 5 failureThreshold: 3 periodSeconds: 15 startupProbe: - httpGet: - path: /login - port: 3100 - timeoutSeconds: 4 + exec: + command: ["wget", "--timeout", "4", "-O", "/dev/null", "http://localhost:3100/login"] + timeoutSeconds: 5 failureThreshold: 36 periodSeconds: 5 resources: