I am facing some issues that Javscript-related content like DT datatables or leaflet maps sometimes do not load in my shiny app deployed with Kubernetes on Google Cloud.
In the browser console I see 404 ressource not found error codes.
The error seems to be stochastic as sometimes everything is correctly displayed. It may be linked with the Load Balancer I think. Does anyone has any ideas how to fix this?
So, what I think is causing this is missing session affinity. A request is send to a different pod, where the ressources are then not found resulting in the 404 errors. Can anybody confirm that I need session affinity for shiny apps?
What I read is that session affinity won't work with services of type NodePort unless using the nginx ingress type in Kubernetes. So I tried to configure an nginx ingress, but I am stuck, what annotations I have to set.