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: