summaryrefslogtreecommitdiff
path: root/roles/kubernetes/standalone/base/templates/cni-with-localonly-portmap.conflist.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/kubernetes/standalone/base/templates/cni-with-localonly-portmap.conflist.j2')
-rw-r--r--roles/kubernetes/standalone/base/templates/cni-with-localonly-portmap.conflist.j225
1 files changed, 25 insertions, 0 deletions
diff --git a/roles/kubernetes/standalone/base/templates/cni-with-localonly-portmap.conflist.j2 b/roles/kubernetes/standalone/base/templates/cni-with-localonly-portmap.conflist.j2
new file mode 100644
index 00000000..acaf7eba
--- /dev/null
+++ b/roles/kubernetes/standalone/base/templates/cni-with-localonly-portmap.conflist.j2
@@ -0,0 +1,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"]
+ }
+ ]
+}