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 Wireguard to have replicas > 1 #192

Open
winston0410 opened this issue Jul 7, 2024 · 1 comment
Open

Allow Wireguard to have replicas > 1 #192

winston0410 opened this issue Jul 7, 2024 · 1 comment

Comments

@winston0410
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
From the source, I notice that the Deployment generated from Wireguard CRD has hardcoded 1 as the value for spec.replicas

@jodevsa Is there a reason for it to be limited as 1? Can it scale to 2? It would be great to avoid single point of failure, by having a few more instances.

Describe the solution you'd like
Allow passing replica count through Wireguard CRD, through spec.replicas.

Describe alternatives you've considered
There seems not to be more intuitive approach than that

Additional context

@zytek
Copy link

zytek commented Sep 24, 2024

I manually scaled and it seems to work fine scale --replicas=2 deployment.apps/wireguard-resources-vpn-dep -n wireguard-system

Running this on EKS with NLB, even with cross-zone load balancing enabled, I could get this to work if I'm not connected to proper NLB endpoint in the same AZ where vpn server is.

after scaling (I'm using 2 AZs) it just works.

perhaps it is due to lack of proper TCP healtcheck on NLB side, hence cross-zone does not work?

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

No branches or pull requests

2 participants