summaryrefslogtreecommitdiff
path: root/roles/kubernetes/net/templates/k8s.json.j2
blob: f457ed1c0a83088e87ab43bdab9e0cd1df70e95f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
{
  "cniVersion": "0.3.1",
  "name": "k8s",
  "type": "bridge",
  "bridge": "kube-br0",
  "isDefaultGateway": true,
  "hairpinMode": true,
  "ipam": {
    "type": "host-local",
    "subnet": "{{ kubernetes.pod_ip_range | ipsubnet(kubernetes.pod_ip_range_size, kubernetes.net_index[inventory_hostname]) }}"
  }
}