Azure-Samples / aks-store-demo

Sample microservices app for AKS demos, tutorials, and experiments
MIT License
132 stars 204 forks source link

BUG: order-service stuck in CrashLoopBackOff state #101

Open engrashid opened 5 months ago

engrashid commented 5 months ago

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):

Screenshot 2024-01-26 at 1 00 35 AM Screenshot 2024-01-26 at 1 01 31 AM
chzbrgr71 commented 5 months ago

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?

engrashid commented 5 months ago

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 .

pauldotyu commented 5 months ago

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
pauldotyu commented 4 months ago

@engrashid do you still need assistance here?