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

Add APIServerLoadBalancer setting to enable/disable API server LB, allow adding ports, configure firewall #26

Merged
merged 45 commits into from
Sep 2, 2024

Conversation

hrak
Copy link
Member

@hrak hrak commented Aug 19, 2024

Issue #, if available:

Description of changes:

This includes the following changes:

  • Update to K8s 1.27.16
  • Update to Go 1.22
  • Refactor flag handling, add version flag
  • Introduce APIServerLoadBalancer in CloudStackCluster that allows enabling/disabling of API server load balancer, adding additional ports to LB, adding firewalling to the load balancer port, in a similar fashion as CAPO.

Testing performed:

Added/adapted several unit tests, tested in my dev env.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

hrak added 26 commits August 13, 2024 10:23
…ncer

also allows load balancing additional ports to the API server
+ remove statically defined and deprecated port
FarnazBGH
FarnazBGH previously approved these changes Aug 19, 2024
hrak added 2 commits August 21, 2024 14:54
- prevent deletion of lb/fw rules not created by CAPC by using tags
- delete all lb/fw rules when the lb is disabled
- the fw rule lookup map only allowed 1 rule per port
@hrak
Copy link
Member Author

hrak commented Aug 30, 2024

FYI existing clusters will have to have created_by_CAPC = 1 tags added to any existing LB and FW rules before upgrading

Copy link
Collaborator

@FarnazBGH FarnazBGH left a comment

Choose a reason for hiding this comment

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

LGTM

@hrak hrak merged commit db5cf80 into main Sep 2, 2024
8 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