Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow setting externalTrafficPolicy on service #411

Conversation

aleksy-zalenski
Copy link
Contributor

what

This PR allows setting the externalTrafficPolicy on service used by Atlantis.

why

I have noticed that some webhook requests flowing through a cloud load balancer, that has externalTrafficPolicy set to Cluster can fail with 504 error. After changing the value of externalTrafficPolicy to Local, the issue was resolved, as we have removed the extra hops between the LB and Atlantis pod.

tests

Tested locally + run the unit tests provided.

references

https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip

@aleksy-zalenski aleksy-zalenski requested a review from a team as a code owner August 2, 2024 08:42
Copy link
Member

@GMartinez-Sisti GMartinez-Sisti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@GMartinez-Sisti GMartinez-Sisti merged commit 848e083 into runatlantis:main Aug 2, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants