Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Jira traffic distribution with Kubernetes ingress?

Charlie Misonne Community Leader Jun 20, 2022

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?

1 answer

0 votes
Yevhen Atlassian Team Jun 20, 2022

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.

Charlie Misonne Community Leader Jun 22, 2022

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.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira Software

Upcoming changes to epic fields in company-managed projects

👋 Hi there Jira Community! A few months ago we shared with you plans around renaming epics in your company-managed projects. As part of these changes, we highlighted upcoming changes to epics on...

14,543 views 37 45
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you