-
Notifications
You must be signed in to change notification settings - Fork 713
Open
Description
Describe the bug
I installed the app using aks-store-all-in-one.yaml config but the mongodb pod goes into CrashLoopBackOff because its liveness probe fails. Liveness check is failing with the following error:
pets 0s Warning Unhealthy pod/mongodb-0 Liveness probe failed: OCI runtime exec failed: exec failed: unable to start container process: exec: "mongosh": executable file not found in $PATH: unknown
To Reproduce
Steps to reproduce the behavior:
- Follow steps from: https://github.com/Azure-Samples/aks-store-demo/tree/main?tab=readme-ov-file#run-on-any-kubernetes i.e.:
kubectl create ns pets
kubectl apply -f https://raw.githubusercontent.com/Azure-Samples/aks-store-demo/main/aks-store-all-in-one.yaml -n pets- Run the following to see that the
mongodb-0pod keeps restarting:
kubectl get events -w -n petsExpected behavior
Pod should pass the liveness probe.
Source of the error
aks-store-demo/aks-store-all-in-one.yaml
Lines 32 to 36 in 5712ff5
| exec: | |
| command: | |
| - mongosh | |
| - --eval | |
| - db.runCommand('ping').ok |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels