Debian Codegraph @

contrib/gce/cni.template

raw
1 {
2 "name": "k8s-pod-network",
3 "cniVersion": "1.0.0",
4 "plugins": [
5 {
6 "type": "ptp",
7 "mtu": 1460,
8 "ipam": {
9 "type": "host-local",
10 "ranges": [{{range $i, $range := .PodCIDRRanges}}{{if $i}}, {{end}}[{"subnet": "{{$range}}"}]{{end}}],
11 "routes": [{{range $i, $route := .Routes}}{{if $i}}, {{end}}{"dst": "{{$route}}"}{{end}}]
12 }
13 },
14 {
15 "type": "portmap",
16 "capabilities": {
17 "portMappings": true
18 }
19 }
20 ]
21 }