How To Luigi Macvlan
MacVLAN type definition
Create Network Attach-Definition macvlan type
apiVersion: "k8s.cni.cncf.io/v1"
kind: NetworkAttachmentDefinition
metadata:
name: macvlan-conf-1
spec:
config: '{
"cniVersion": "0.3.0",
"name": "macvlan-conf-1",
"type": "macvlan",
"master": "eth1",
"mode": "bridge",
"ipam": {
"type": "whereabouts",
"range": "192.168.60.0/24",
"range_start": "192.168.60.20",
"range_end": "192.168.60.50",
"gateway": "192.168.60.1"
}
}'Network Attach Definition Validation macvlan type
Pod Definitions with 2 interfaces
Create Pods with mcvlan interfaces
Validate Pods Creation with macvlan interfaces
Connectivity Testing
East-West macvlan traffic
North-South macvlan traffic:
Last updated
Was this helpful?
