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

[Feat] Gateway HA #2767

Merged
merged 1 commit into from
Oct 21, 2024
Merged

[Feat] Gateway HA #2767

merged 1 commit into from
Oct 21, 2024

Conversation

cheina97
Copy link
Member

@cheina97 cheina97 commented Oct 7, 2024

Description

This PR adds support for HA (active/passive) in liqo gateways. The "gateway" container is now the only responsible for the lease acquisition and can start the "geneve" and "wireguard" containers using IPC.

The main changes are:

  • added a "label" to target the active gateway pod (useful for gateway server services and to create internal network tunnels)
  • added a "runnable" to add and remove the "label" from the active pod when it becomes the leader (using k8s lease)
  • added an IPC (inter process communication) based on UNIX sockets shared between gateway containers

@cheina97
Copy link
Member Author

cheina97 commented Oct 7, 2024

/build

@adamjensenbot
Copy link
Collaborator

Hi @cheina97. Thanks for your PR!

I am @adamjensenbot.
You can interact with me issuing a slash command in the first line of a comment.
Currently, I understand the following commands:

  • /rebase: Rebase this PR onto the master branch (You can add the option test=true to launch the tests
    when the rebase operation is completed)
  • /merge: Merge this PR into the master branch
  • /build Build Liqo components
  • /test Launch the E2E and Unit tests
  • /hold, /unhold Add/remove the hold label to prevent merging with /merge

Make sure this PR appears in the liqo changelog, adding one of the following labels:

  • kind/breaking: 💥 Breaking Change
  • kind/feature: 🚀 New Feature
  • kind/bug: 🐛 Bug Fix
  • kind/cleanup: 🧹 Code Refactoring
  • kind/docs: 📝 Documentation

@cheina97
Copy link
Member Author

cheina97 commented Oct 7, 2024

/build

@fra98 fra98 added the kind/feature New feature or request label Oct 7, 2024
@cheina97
Copy link
Member Author

cheina97 commented Oct 7, 2024

/build

@cheina97 cheina97 force-pushed the frc/gwha branch 4 times, most recently from 9adc6c6 to 1c8044c Compare October 7, 2024 15:48
@cheina97
Copy link
Member Author

cheina97 commented Oct 7, 2024

/build

@cheina97
Copy link
Member Author

cheina97 commented Oct 7, 2024

/build

@cheina97
Copy link
Member Author

cheina97 commented Oct 7, 2024

/build

@pull-request-size pull-request-size bot added size/XL and removed size/L labels Oct 8, 2024
@cheina97
Copy link
Member Author

cheina97 commented Oct 8, 2024

/build

@cheina97 cheina97 force-pushed the frc/gwha branch 10 times, most recently from 581f370 to 3465b22 Compare October 9, 2024 16:16
pkg/gateway/concurrent/const.go Outdated Show resolved Hide resolved
cmd/gateway/wireguard/main.go Outdated Show resolved Hide resolved
cmd/gateway/geneve/main.go Outdated Show resolved Hide resolved
@cheina97
Copy link
Member Author

/rebase test=true

@cheina97
Copy link
Member Author

/rebase test=true

@cheina97
Copy link
Member Author

/build

@cheina97
Copy link
Member Author

/build

@cheina97 cheina97 force-pushed the frc/gwha branch 3 times, most recently from 8e442d0 to 3705686 Compare October 18, 2024 16:39
@cheina97
Copy link
Member Author

/rebase test=true

@cheina97
Copy link
Member Author

/build

@cheina97
Copy link
Member Author

/rebase test=true

@cheina97
Copy link
Member Author

/rebase test=true

@cheina97
Copy link
Member Author

/rebase test=true

@cheina97
Copy link
Member Author

/merge

@adamjensenbot adamjensenbot added the merge-requested Request bot merging (automatically managed) label Oct 21, 2024
@adamjensenbot adamjensenbot merged commit a6ab756 into liqotech:master Oct 21, 2024
13 checks passed
@adamjensenbot adamjensenbot removed the merge-requested Request bot merging (automatically managed) label Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature New feature or request size/XL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants