-
Notifications
You must be signed in to change notification settings - Fork 110
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
[liqoctl] set gateway server Service location in peer
command
#2913
base: master
Are you sure you want to change the base?
Conversation
Hi @fra98. Thanks for your PR! I am @adamjensenbot.
Make sure this PR appears in the liqo changelog, adding one of the following labels:
|
peer
command
/rebase |
91aad33
to
cb2934c
Compare
/test |
cb2934c
to
9741cc1
Compare
peer
commandpeer
command
/test |
/test |
9741cc1
to
2048e52
Compare
/test |
1 similar comment
/test |
2048e52
to
62f1883
Compare
/test |
/rebase test=true |
62f1883
to
00f95f2
Compare
Difficult for me to understand what "server" means in the command line, "--server-service-location". |
@@ -36,7 +36,8 @@ To perform a peering without having access to both clusters, you need to manuall | |||
The peering command enables all 3 liqo modules and performs the following steps: | |||
|
|||
1. **enables networking**. | |||
Exchanges network configurations and creates the two **gateways** (server in the provider, client in the consumer) to let the two clusters communicate over a secure tunnel. | |||
Exchanges network configurations and creates the two **gateways** (one server in a cluster and one client in the other) to let the two clusters communicate over a secure tunnel. | |||
By default the gateway server in placed in the provider, while the gateway client in the consumer, but you can configure it with the `--server-service-location` flag. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By default the gateway server in placed in the provider, while the gateway client in the consumer, but you can configure it with the `--server-service-location` flag. | |
The location of the client/server gateway can be customized when creating the peering using the `--server-service-location` flag in `liqoctl`. |
@@ -36,7 +36,8 @@ To perform a peering without having access to both clusters, you need to manuall | |||
The peering command enables all 3 liqo modules and performs the following steps: | |||
|
|||
1. **enables networking**. | |||
Exchanges network configurations and creates the two **gateways** (server in the provider, client in the consumer) to let the two clusters communicate over a secure tunnel. | |||
Exchanges network configurations and creates the two **gateways** (one server in a cluster and one client in the other) to let the two clusters communicate over a secure tunnel. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exchanges network configurations and creates the two **gateways** (one server in a cluster and one client in the other) to let the two clusters communicate over a secure tunnel. | |
Exchanges network configurations and creates the two **gateways** (one acting as _server_ and located in the provider cluster, another acting as _client_ in the consumer cluster) to let the two clusters communicate over a secure tunnel. |
@@ -90,8 +91,11 @@ func newPeerCommand(ctx context.Context, f *factory.Factory) *cobra.Command { | |||
|
|||
// Networking flags | |||
cmd.Flags().BoolVar(&options.NetworkingDisabled, "networking-disabled", false, "Disable networking between the two clusters") | |||
cmd.Flags().Var(options.ServerServiceLocation, "server-service-location", | |||
fmt.Sprintf("Location of the service to expose the Gateway Server (%q or %q). Default: %q", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure I would understand correctly.
I would say this way:
fmt.Sprintf("Cluster that acts as gateway server when setting up the network between two Liqo instances (%q or %q). Default: %q",
Description
This PR introduces the support to specify the gateway client and server location in a peering.
The
--server-service-location
flag inliqoctl peer
allows to place the gateway server service in the provider (default) or consumer.This can be useful if you cannot expose Services (or don't have LB UDP support) in the provider cluster or if the provider is behind a NAT (without going through the manual peering procedure or setting up the networking module individually).