I'm a total beginner, I haven't done anything like this before, so I'm sorry if this is a stupid question, but I couldn't find anything related. I'm trying to deploy a voting app on google cloud on kubernetes. The problem is that the app has almost non-existent documentation, so I don't know if I'm doing something wrong. When I host the app locally, everything works as expected, but when I deployed it on kubernetes when I try to log in, the server throws a 403. Does anyone know what could cause it?
Here's the screenshot of the log:
I pointed out the root cause in the comments section but for better visibility I decided to provide an answer.
@smoczy123 noticed that the Zeus app doesn't work as expected with multiple replicas - more specifically, logging in doesn't work properly.
As a workaround we can create a Deployment
with a single replica and scale the Pod
vertically.
Additionally, it is possible to use Vertical Pod Autoscaler to set the requests automatically based on usage.