feat(ip-query-server): lb of masters added to firewall use_local_firewall#693
Open
leblancmeneses wants to merge 1 commit intovitobotta:mainfrom
Open
feat(ip-query-server): lb of masters added to firewall use_local_firewall#693leblancmeneses wants to merge 1 commit intovitobotta:mainfrom
leblancmeneses wants to merge 1 commit intovitobotta:mainfrom
Conversation
…etwork false and create_load_balancer_for_the_kubernetes_api: true
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



feat(ip-query-server): lb of masters added to firewall when private_network false and create_load_balancer_for_the_kubernetes_api: true, use_local_firewall: true
Modified ip-query-server/app.rb to:
- Fetch load balancer IPs from Hetzner API (/v1/load_balancers)
- Filter to only include LBs whose targets include master nodes (by checking server IDs or label selectors with role=master)
- Include LB IPs in the "all" IPs response
- Added new ?role=loadbalancer filter option
How it filters LBs:
The code checks if a load balancer targets master nodes by:
This ensures that Istio ingress LBs and other unrelated load balancers are excluded - only the K8s API load balancer (which targets the 3 master nodes) is included.
Without this I could not connect to my cluster from my machine using kubectl