Hi community!
I want to send all traffic to /jira/rest to a specific Jira node/ pod. I succeeded but when I login onto the UI and navigate to another page within Jira I am logged out again. I assume it is realted because of the following:
This related articles mentions:
Configure the load balancer to only direct REST API traffic with the following conditions:
- Referred externally from the application
- Not requesting the login page
I did not configure those conditions yet. Does anyone know how to do it in an nginx ingress rule?
I am in no way an expert in Jira but I guess if I had to solve such a problem with Nginx ingress controller I'd:
* create a new service which uses a unique label (pods in the statefulset will have it)
* add another path to your spec.rules.http.paths and use your new service as a backend
Also there's a general requirement to make sure you have session affinity (sticky cookies) enabled for your ingress.
Thanks for your answer.
What you describe is exactly what I did and session affinity is also configured.
The routing for /jira/rest works. It always goes to my jira-0 pod. But it causes issues in the UI. Probably because I did not set the 2 conditions.
As a workaround we will use a dedicated hostname for the API.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.