summaryrefslogtreecommitdiff
path: root/roles/kubernetes/standalone
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2022-09-06 00:18:41 +0200
committerChristian Pointner <equinox@spreadspace.org>2022-09-06 00:18:41 +0200
commite2a371a84d78230812db6912a290cedc5560ebed (patch)
treedc8dbca43e7e1fadb21a2b1ae2086297698a6615 /roles/kubernetes/standalone
parentreplace some ipaddr() filter calls to new location (still a lot left todo...) (diff)
replace some more ipaddr() filter calls..
Diffstat (limited to 'roles/kubernetes/standalone')
-rw-r--r--roles/kubernetes/standalone/base/templates/kube-standalone-local-services.sh.j24
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/kubernetes/standalone/base/templates/kube-standalone-local-services.sh.j2 b/roles/kubernetes/standalone/base/templates/kube-standalone-local-services.sh.j2
index a53a043e..d7f8d210 100644
--- a/roles/kubernetes/standalone/base/templates/kube-standalone-local-services.sh.j2
+++ b/roles/kubernetes/standalone/base/templates/kube-standalone-local-services.sh.j2
@@ -4,10 +4,10 @@ iptables -t nat -N kube-local-services > /dev/null 2>&1
iptables -t nat -F kube-local-services
{% if kubernetes_standalone_local_services_tcp | length > 0 %}
-iptables -t nat -A kube-local-services -p tcp --match multiport --dports {{ kubernetes_standalone_local_services_tcp | join(',') }} -i kube-bridge -s {{ kubernetes_standalone_pod_cidr }} -d {{ kubernetes_standalone_pod_cidr | ipaddr('1') | ipaddr('address') }} -j DNAT --to-destination 127.0.0.1
+iptables -t nat -A kube-local-services -p tcp --match multiport --dports {{ kubernetes_standalone_local_services_tcp | join(',') }} -i kube-bridge -s {{ kubernetes_standalone_pod_cidr }} -d {{ kubernetes_standalone_pod_cidr | ansible.utils.ipaddr('1') | ansible.utils.ipaddr('address') }} -j DNAT --to-destination 127.0.0.1
{% endif %}
{% if kubernetes_standalone_local_services_udp | length > 0 %}
-iptables -t nat -A kube-local-services -p udp --match multiport --dports {{ kubernetes_standalone_local_services_udp | join(',') }} -i kube-bridge -s {{ kubernetes_standalone_pod_cidr }} -d {{ kubernetes_standalone_pod_cidr | ipaddr('1') | ipaddr('address') }} -j DNAT --to-destination 127.0.0.1
+iptables -t nat -A kube-local-services -p udp --match multiport --dports {{ kubernetes_standalone_local_services_udp | join(',') }} -i kube-bridge -s {{ kubernetes_standalone_pod_cidr }} -d {{ kubernetes_standalone_pod_cidr | ansible.utils.ipaddr('1') | ansible.utils.ipaddr('address') }} -j DNAT --to-destination 127.0.0.1
{% endif %}
iptables -t nat -C PREROUTING -j kube-local-services > /dev/null 2>&1