docker – Sync NodeJS program inside kubernetes cluster hangs (while idle)

I been deploying a NodeJs server to GKE without problems for some time.
The app is a simple node server

The docker final command just invokes the start script:
CMD [“node”, “scripts/start.js”]

The deployment is done via gcloud deploy and everything is green (node, pod, …)
After a seamlessly trivial ui change, the pod hangs while executing the script… Even a small subset of sync code (esm imports) seems to also trigger the program to hang.

Extra context:

  • The very same docker image and config is deployed in another cluster (dont want to touch it for now).
  • In very rare cases after trying things up and down the process actually starts
  • There is no memory or cpu spikes and the node process is idle.
  • Resources seem to be more than enough on the pool/node

Anyone has any idea where can the problem be? Feel to be that there is something in the kubernetes cluster that is f-ed as its highly unlike is the code in itself…

Read more here: Source link