diff --git a/contrib/gce/cni.template b/contrib/gce/cni.template index 37f34522183d..1eb5f5d43f3b 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}}] } }, {