Skip to content

Commit

Permalink
BC-6292 using wget as the k8s http probes were not failing (#3390)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Loki-Afro authored and virgilchiriac committed Jan 19, 2024
1 parent 10391f6 commit 61cba63
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions ansible/roles/schulcloud-client-core/templates/deployment.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 61cba63

Please sign in to comment.