generated from phoenix-oss/tenant-tpl
Add overlay lan
This commit is contained in:
parent
46b0108828
commit
7a9b3176e8
1 changed files with 20 additions and 20 deletions
|
@ -1,20 +1,20 @@
|
|||
# apiVersion: "k8s.cni.cncf.io/v1"
|
||||
# kind: NetworkAttachmentDefinition
|
||||
# metadata:
|
||||
# name: lan-net
|
||||
# namespace: ${TENANT_NAMESPACE}
|
||||
# spec:
|
||||
# config: '{
|
||||
# "cniVersion": "0.3.1",
|
||||
# "type": "bridge",
|
||||
# "bridge": "br-lan",
|
||||
# "ipam": {
|
||||
# "type": "static",
|
||||
# "addresses": [
|
||||
# {
|
||||
# "address": "172.168.100.2/24",
|
||||
# "gateway": "172.168.100.1"
|
||||
# }
|
||||
# ]
|
||||
# }
|
||||
# }'
|
||||
apiVersion: k8s.cni.cncf.io/v1
|
||||
kind: NetworkAttachmentDefinition
|
||||
metadata:
|
||||
name: lan-ovn-160
|
||||
namespace: net-demo
|
||||
spec:
|
||||
config: |
|
||||
{
|
||||
"cniVersion": "0.3.1",
|
||||
"type": "ovn-k8s-cni-overlay",
|
||||
"name": "lan-ovn-160",
|
||||
"topology": "layer2",
|
||||
"subnets": [
|
||||
{"cidr": "192.168.160.0/24"}
|
||||
],
|
||||
"mtu": 1400,
|
||||
"routes": [
|
||||
{"dst": "10.60.0.0/16", "gw": "192.168.10.1"},
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue