k8s-custom-iptables icon indicating copy to clipboard operation
k8s-custom-iptables copied to clipboard

errors in the logs after installing 2 contiguous cidr ranges

Open dylanscott opened this issue 7 years ago • 2 comments

I don't know if this was actually causing any problems but I noticed the logs for the k8s-custom-iptables pods had errors every time the configuration was being printed after I installed it with 2 CIDR ranges. I ran

TARGETS="10.0.0.0/29 10.0.0.8/29" ./install.sh

(These were the two ranges printed out by two Cloud Memorystore instances - I was following this documentation). In the logs I was getting:

screen shot 2018-05-18 at 9 39 40 am

This went away after I reconfigured to combine the blocks into 10.0.0.0/28

dylanscott avatar May 18 '18 16:05 dylanscott

We also got this problem and fixed it with adding a ,.

Solution

TARGETS="10.0.0.0/29,10.0.0.8/29" ./install.sh

Verification To verify this approach: login the VM instance in the gcloud console (GCP > Compute Engine > VM instances > SSH) and run:

sudo iptables -L -t nat | grep "custom-iptables"

You should see:

MASQUERADE  all  --  anywhere             10.0.0.0/29          /* custom-iptables-1537539514: 10.0.0.0/29,10.0.0.8/29 */
MASQUERADE  all  --  anywhere             10.0.0.8/29          /* custom-iptables-1537539514: 10.0.0.0/29,10.0.0.8/29 */

bvanhoekelen avatar Sep 21 '18 14:09 bvanhoekelen

I can also verify that the solution above works.

sudermanjr avatar Jan 23 '19 22:01 sudermanjr