From ce0d7e26b5a925abe23a4c51f17d88cbe2489a2f Mon Sep 17 00:00:00 2001 From: Luca Ongaro Date: Fri, 17 Mar 2023 10:36:19 +0100 Subject: [PATCH] Use comma-separated list of IP ranges The README was showing a space-separated list of IP ranges in `TARGETS` or in `nat.rules`, which does not work and causes issue https://github.com/bowei/k8s-custom-iptables/issues/4 . Instead, the correct solution is to use a comma-separated list. This commit updates the README accordingly. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ccc3018..a89fb0a 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ to a TARGETS CIDR range(s) given to the script. Install the daemonset that configures the cluster to NAT an IP range. ``` -TARGETS="1.2.3.4/24 4.5.6.7/16" ./install.sh +TARGETS="1.2.3.4/24,4.5.6.7/16" ./install.sh ``` # Uninstall rules from the cluster. @@ -30,7 +30,7 @@ kind: ConfigMap metadata: name: k8s-custom-iptables data: - nat.rules: "10.0.0.0/24 192.168.0.0/16" + nat.rules: "10.0.0.0/24,192.168.0.0/16" ``` # Creating and pushing the image.