-
Notifications
You must be signed in to change notification settings - Fork 1
/
macvlan_pub_nw.yaml
31 lines (31 loc) · 951 Bytes
/
macvlan_pub_nw.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
################################################################################
# #
# Author: Serguei Nastassi itoracle@icloud.com #
# Created 01/03/2023 #
################################################################################
---
apiVersion: "k8s.cni.cncf.io/v1"
kind: NetworkAttachmentDefinition
metadata:
name: macvlan-conf
spec:
config: '{
"cniVersion": "0.3.1",
"plugins": [
{
"type": "macvlan",
"capabilities": { "ips": true },
"master": "cni0",
"mode": "bridge",
"ipam": {
"type": "static",
"routes": [
{
"dst": "0.0.0.0/0",
"gw": "172.16.1.1"
}
]
}
}
]
}'