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