From the K8s crash course - Worker pod/deployment has a CrashLoopBackOff Error

Hello KodeKloudTeam, from the VOTING-APP project in the K8s crash course, the worker pod is showing CrashLoopBackOff Error. There seems to my some issues with the image used to creating the container. Can you please check and help resolve this issue? Thanks in advance for your help and time.

I don’t think it’s the image – the worker pod’s code is not very good at dealing with missing resources. There are several ways around the issue. You might try:

  • Bringing up the various microservers individually, with the worker being the last to bring up.
  • Try the technique in this post – the worker has a “race condition” problem which this post solves.