[bugfix][docs] Updates examples to match spec criteria

This commit is contained in:
dougbtv
2018-05-03 14:50:07 -04:00
committed by Kuralamudhan Ramakrishnan
parent 696f863d93
commit fc4652697b
2 changed files with 25 additions and 25 deletions

View File

@@ -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
} }
]' }'

View File

@@ -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"
} }
]' }'