webMethods API Gateway Q&A - Cannot login if number of pods of the API Gateway increases to two or more

When the API Gateway is deployed to Kubernetes using image <softwareag/apigateway-lean-trial> and also ES deployed into the same K8s cluster, able to access the API gateway without issues.

However, when the number of pods of the API Gateway increases to two or more, the API gateway cannot log in and an error is reported as below.

“Invalid Session. Redirecting the user to /apigatewayui/login”

Before scaling the number of pods of API Gateway on Kubernetes, the service YAML file should be updated to make the sessions sticky. This is needed, to be able to use the API Gateway UI and Integration server UI.

To do this, add in the created service.yaml file the following entry:

sessionAffinity: ClientIP