mirror of
https://github.com/k8snetworkplumbingwg/multus-cni.git
synced 2025-09-17 15:07:14 +00:00
[bugfix][docs] Updates examples to match spec criteria
This commit is contained in:
committed by
Kuralamudhan Ramakrishnan
parent
696f863d93
commit
fc4652697b
@@ -2,11 +2,11 @@ apiVersion: "kubernetes.cni.cncf.io/v1"
|
|||||||
kind: Network
|
kind: Network
|
||||||
metadata:
|
metadata:
|
||||||
name: flannel-conf
|
name: flannel-conf
|
||||||
plugin: flannel
|
spec:
|
||||||
args: '[
|
config: '{
|
||||||
{
|
"cniVersion": "0.3.0",
|
||||||
"delegate": {
|
"type": "flannel",
|
||||||
"isDefaultGateway": true
|
"delegate": {
|
||||||
}
|
"isDefaultGateway": true
|
||||||
}
|
}
|
||||||
]'
|
}'
|
@@ -2,20 +2,20 @@ apiVersion: "kubernetes.cni.cncf.io/v1"
|
|||||||
kind: Network
|
kind: Network
|
||||||
metadata:
|
metadata:
|
||||||
name: macvlan-conf
|
name: macvlan-conf
|
||||||
plugin: macvlan
|
spec:
|
||||||
args: '[
|
config: '{
|
||||||
{
|
"cniVersion": "0.3.0",
|
||||||
"master": "eth0",
|
"type": "macvlan",
|
||||||
"mode": "bridge",
|
"master": "eth0",
|
||||||
"ipam": {
|
"mode": "bridge",
|
||||||
"type": "host-local",
|
"ipam": {
|
||||||
"subnet": "192.168.1.0/24",
|
"type": "host-local",
|
||||||
"rangeStart": "192.168.1.200",
|
"subnet": "192.168.1.0/24",
|
||||||
"rangeEnd": "192.168.1.216",
|
"rangeStart": "192.168.1.200",
|
||||||
"routes": [
|
"rangeEnd": "192.168.1.216",
|
||||||
{ "dst": "0.0.0.0/0" }
|
"routes": [
|
||||||
],
|
{ "dst": "0.0.0.0/0" }
|
||||||
"gateway": "192.168.1.1"
|
],
|
||||||
}
|
"gateway": "192.168.1.1"
|
||||||
}
|
}
|
||||||
]'
|
}'
|
Reference in New Issue
Block a user