blob: 0057036fe65caa1c07a0bc6e2299f22ddedff77b [file] [log] [blame]
{{- /*gotype: github.com/containerd/cri/pkg/server.cniConfigTemplate*/ -}}
{
"name": "k8s-pod-network",
"cniVersion": "0.3.1",
"plugins": [
{
"type": "ptp",
"mtu": 1420,
"ipam": {
"type": "host-local",
"dataDir": "/containerd/run/ipam",
"ranges": [
{{range $i, $range := .PodCIDRRanges}}{{if $i}},
{{end}}[
{
"subnet": "{{$range}}"
}
]
{{end}}
],
"routes": [
{{range $i, $route := .Routes}}{{if $i}},
{{end}}{
"dst": "{{$route}}"
}{{end}}]
}
}
]
}