summaryrefslogtreecommitdiff
path: root/roles/kubernetes/standalone/base/templates/cni-with-localonly-portmap.conflist.j2
blob: acaf7eba3f1b56e90e555ede6115aafd026fc27e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{
  "cniVersion": "0.3.1",
  "name": "kube-standalone",
  "plugins": [
    {
      "type": "bridge",
      "bridge": "kube-bridge",
      "isDefaultGateway": true,
      "ipMasq": true,
      "hairpinMode": false,
      "ipam": {
        "type": "host-local",
        "subnet": "{{ kubernetes_standalone_pod_cidr }}"
      }
    }, {
      "type": "portmap",
      "capabilities": {
        "portMappings": true
      },
      "snat": true,
      "conditionsV4": ["-s", "127.0.0.1", "-d", "127.0.0.1"],
      "conditionsV6": ["-s", "::1", "-d", "::1"]
    }
  ]
}