bored-horse-3670
03/20/2023, 2:28 PMdig <http://google.com|google.com> @8.8.8.8
on the ubuntu VM that is running k3s:
10:29:53.210020 IP 192.168.168.129.44953 > dns.google.domain: 48216+ [1au] A? <http://google.com|google.com>. (51)
10:29:53.238070 IP dns.google.domain > 192.168.168.129.44953: 48216 1/0/1 A 142.250.80.46 (55)
packets seen when doing dig <http://google.com|google.com> @8.8.8.8
in a kube container running on the same VM:
10:30:29.737570 IP 10.42.0.106.55863 > dns.google.domain: 14949+ [1au] A? <http://google.com|google.com>. (51)
10:30:34.741290 IP 10.42.0.106.59193 > dns.google.domain: 14949+ [1au] A? <http://google.com|google.com>. (51)
The 10.42.0.106 pod address shouldn't be here at all.sudo ifconfig
sudo route -n
Mar 20 02:31:25 kessler k3s[1052]: E0320 02:31:25.949679 1052 iptables.go:291] Failed to bootstrap IPTables: failed to setup iptables-restore payload: failed to check rule existence: running [/sbin/iptables -t nat -C FLANNEL-POSTRTG -s 10.42.0.0/16 ! -d 224.0.0.0/4 -m comment --comment flanneld masq -j MASQUERADE --wait]: exit status 2: Bad argument `'
Mar 20 02:31:25 kessler k3s[1052]: Try `iptables -h' or 'iptables --help' for more information.
Mar 20 02:31:26 kessler k3s[1052]: I0320 02:31:26.001850 1052 iptables.go:405] Some iptables rules are missing; deleting and recreating rules
# /sbin/iptables -t nat -C FLANNEL-POSTRTG -s 10.42.0.0/16 ! -d 224.0.0.0/4 -m comment --comment flanneld masq -j MASQUERADE --wait
Bad argument `masq'
Try `iptables -h' or 'iptables --help' for more information.
--prefer-bundled-bin
option did the trick.
It's probably time to upgrade the ubuntu distro too.creamy-pencil-82913
03/20/2023, 5:11 PM