Azure-Samples/aks-store-demo

BUG: order-service stuck in CrashLoopBackOff state

engrashid opened this issue · 4 comments

Describe the bug
order-service deployment fails in aks cluster
To Reproduce
Steps to reproduce the behavior:
kubectl get pods -n pets | grep order-service

Expected behavior
order-service-78d6dc9fbb-7kvnz 0/1 CrashLoopBackOff 17 (4m13s ago) 43m

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: macos
  • Browser: chrome
  • Version 120.0.6099.234
Screenshot 2024-01-26 at 1 00 35 AM Screenshot 2024-01-26 at 1 01 31 AM

How did you deploy the application? Did you use the aks-store-all-in-one.yaml or were you following one of the AKS Docs?

I used
kubectl apply -f https://raw.githubusercontent.com/Azure-Samples/aks-store-demo/main/aks-store-all-in-one.yaml
It was from AKS Docs .

Thanks for reporting the issue @engrashid. I've seen this error occur when the order-service's startupProbe fails (for whatever reason). However, it should resolve itself after the scheduler kills and restarts the pod. Does your order-service eventually come up? If not, you can try running the following command to restart:

kubectl rollout restart deploy order-service

Also, if you run the following command, you might be able to see some additional detail that could help troubleshoot.

kubectl events | grep order-service

@engrashid do you still need assistance here?