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

[LP#2091126] Return the correct internal lb response #366

Merged
merged 1 commit into from
Dec 5, 2024

Conversation

addyess
Copy link
Member

@addyess addyess commented Dec 5, 2024

@addyess addyess changed the title Return the correct internal lb response [LP#2091126] Return the correct internal lb response Dec 5, 2024
Comment on lines 40 to +42
def get_internal_api_endpoint(self) -> Optional[str]:
"""Endpoint address from the loadbalancer-external relation."""
response = self.charm.lb_external.get_response("api-server-internal")
"""Endpoint address from the loadbalancer-internal relation."""
response = self.charm.lb_internal.get_response("api-server-internal")
Copy link
Member Author

Choose a reason for hiding this comment

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

INTERNAL loadbalancer IP should come from the INTERNAL relation, not the external relation

@addyess
Copy link
Member Author

addyess commented Dec 5, 2024

I confirmed this uses AWS internal address for the kubeapi-load-balancer, not the external one.

@mateoflorido mateoflorido merged commit e17076e into main Dec 5, 2024
6 of 7 checks passed
@mateoflorido mateoflorido deleted the bug/lp2091126/favor-internal-lb-for-kubecontrol branch December 5, 2024 22:58
addyess added a commit that referenced this pull request Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants