From 3e03ba7aa280650dd8efde3dffb27ef356525a1e Mon Sep 17 00:00:00 2001 From: Lantao Liu Date: Mon, 16 Sep 2019 20:30:05 -0700 Subject: [PATCH] Update deployment and integration test Signed-off-by: Lantao Liu --- contrib/gce/cni.template | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/contrib/gce/cni.template b/contrib/gce/cni.template index 37f345221..1eb5f5d43 100644 --- a/contrib/gce/cni.template +++ b/contrib/gce/cni.template @@ -7,12 +7,8 @@ "mtu": 1460, "ipam": { "type": "host-local", - "subnet": "{{.PodCIDR}}", - "routes": [ - { - "dst": "0.0.0.0/0" - } - ] + "ranges": [{{range $i, $range := .PodCIDRRanges}}{{if $i}}, {{end}}[{"subnet": "{{$range}}"}]{{end}}], + "routes": [{{range $i, $route := .Routes}}{{if $i}}, {{end}}{"dst": "{{$route}}"}{{end}}] } }, {