Can Kubernetes see my Angular console logs? Can Kubernetes see my Angular console logs? kubernetes kubernetes

Can Kubernetes see my Angular console logs?


Short answer: no

The Angular app runs in the users browser. That means any logs using console.log will be logged on the user side in their browser and Kubernetes will not know about it.

The part that runs in Kubernetes is actually a static web server like Nginx or perhaps a NodeJS server that is just serving up the files.

If you have a backend service (like NodeJS) the logs in the server process will show up in stdout and stderr. Those can be picked up in Kubernetes.

To get the logs from Angular you would need to send them from the client to the backend over REST or something similar.