Angular pods on Kubernetes restarts randomly

32 Views Asked by At

My angular code is deployed on Google Kubernetes Engine. When i check the pods, i see there are a number of restarts. When i check the logs using

kubectl get logs <pod> --previous 

there are few error logs of type:

  1. Cannot read properties of undefined (reading 'data')

After that the whole 'main.js' file is logged. Can someone please explain why the pods are restarting.I am using Angular 16.

I checked various blogs but cant seem to find any similar issue.

0

There are 0 best solutions below