-
Notifications
You must be signed in to change notification settings - Fork 431
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature iptables eip nats splits (#1437)
add vip eip fip dnat snat crd add vip crd for l2 macvlan|ipvlan (vpc single-eni-multi-ip), like openstack neturon aap(allow address pair) add eip crd for eip in vpc nat gw pod add snat crd for snat in vpc nat gw pod add dnat crd for dnat in vpc nat gw pod add fip crd for fip in vpc nat gw pod Co-authored-by: zhangbingbing <zhangbingbing@yealink.com>
- Loading branch information
Showing
45 changed files
with
7,616 additions
and
492 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
From v1.10, users can create vip. vip looks a bit like port in openstack neutron. users can use vip to keep ip address before using it (in pod). | ||
|
||
in some scenarios below, vip should be very useful。 | ||
|
||
- build k8s cluster based on kubevirt vms, if you use veth-pair, ipvlan, macvlan as your cni | ||
- ovn lb health-check also need vip | ||
|
||
|
||
|
||
**vip can use in any subnet, vpc and underlay subnet both included.** | ||
|
||
|
||
|
||
### create vip | ||
|
||
```yaml | ||
# 1. dynamic get vip | ||
apiVersion: kubeovn.io/v1 | ||
kind: VirtualIP | ||
metadata: | ||
name: vip-dynamic-01 | ||
spec: | ||
subnet: my-ovn-vpc-subnet # specify your subnet | ||
--- | ||
# 2. static ip | ||
apiVersion: kubeovn.io/v1 | ||
kind: VirtualIP | ||
metadata: | ||
name: static-vip01 | ||
spec: | ||
subnet: my-ovn-vpc-subnet # specify your subnet | ||
v4Ip: "172.20.10.201" # and specify your ip | ||
``` |
Oops, something went wrong.