I'm trying to deploy an open source app on kubernetes, but the authentication doesn't work when deployed on google cloud

2/16/2021

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:

enter image description here

-- smoczy123
django
google-cloud-platform
kubernetes

1 Answer

2/24/2021

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.

-- matt_j
Source: StackOverflow