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

[Question] about eip and snat #5023

Open
pasztorl opened this issue Feb 22, 2025 · 4 comments
Open

[Question] about eip and snat #5023

pasztorl opened this issue Feb 22, 2025 · 4 comments
Labels
eip question Further information is requested

Comments

@pasztorl
Copy link

Hi,

i seen this page on docs: https://kubeovn.github.io/docs/v1.12.x/en/guide/eip-snat/

My question is that if i would like to use eip/snat i can only setup one network range for them because there is only one ovn-external-gw-config can exists?

How can i create multiple networks for using eip/snat feature?

thanks

Copy link

dosubot bot commented Feb 22, 2025

Hey @pasztorl! How can I assist you today?

To create multiple networks for using the EIP/SNAT feature in Kube-OVN, you can follow a workaround that involves using a custom VPC setup. Here's a suggested approach:

  1. Create an Extra External Subnet: Set up an additional external subnet with a provider network and VLAN subnet CRD.

  2. Configure the Custom VPC: Add the extra external subnets to the extraExternalSubnets list in the custom VPC specification.

  3. Use OVN SNAT and OVN FIP: Create OVN SNAT and OVN FIP as needed for your setup.

This feature has been completed, and more detailed information can be found in the documentation: Kube-OVN EIP/FIP/SNAT Guide. Be sure to handle the default VPC route carefully and consider using a custom VPC as an example [1].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@dosubot dosubot bot added eip question Further information is requested labels Feb 22, 2025
@pasztorl
Copy link
Author

so the external-gw-config is for the default vpc and every vpc can have exactly one external network config?

Copy link

dosubot bot commented Feb 22, 2025

The ovn-external-gw-config is primarily used for managing the external gateway configuration in the default VPC setup in Kube-OVN. It determines the external gateway's state and network settings [1]. However, each VPC can have its own external network configurations, including multiple external subnets, by using the extraExternalSubnets list in the VPC configuration. This allows for more flexibility in managing multiple network ranges within custom VPCs [2][3].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@zbb88888
Copy link
Collaborator

so the external-gw-config is for the default vpc and every vpc can have exactly one external network config?

yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
eip question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants