Replies: 5 comments 4 replies
-
Which subnets specifically are you unable to reach? What CIDRs are you using for your home network, and which subnets are you using for cluster and service CIDRs? What problem are you attempting to troubleshoot by running traceroute commands? Note that much of the networking in Kubernetes is done with iptables forwarding traffic to specific IPs and ports; you're not necessarily going to be able to traceroute to everything. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your response @brandond. I have a three node raspberry pi4 cluster, 1 master 2 worker nodes. My home network range is limited by my ISP, but it is the range 192.168.0.x. The default gateway for this network is 192.168.0.1. I have allocated the master 192.168.0.201, whilst the workers are 192.168.0.202, and 192.168.0.203. I am also using metallb so that I can allocate external IPs to loadBalancers, and this range is currently 192.168.0.220-230. The issue I seem to have is routing between internal subnets. CNI0 interfaces have been allocated 10.42.0.1 for the master, and for the workers 10.42.1.1 and 10.42.4.1. I have installed some applications within the default namespace, and I've also installed Grafana, prometheus within a monitoring namespace. Today I installed Loki into another namespace, and when trying to configure Grafana to point towards the service for Loki, it cannot see the specific subnet. This address is 10.43.54.17. and I've exec'd into a pod that is working on 10.42.4.162, with pre-installed trace route and other tools, and tried to see what would happen if I tried to access the subnet, specifically 10.43.54.17. The result of the trace route is in my opinion a routing issue that I'm unsure on how to fix. Result is below, but I can see it routing out to the default gateway of my home network and not forwarding or routing packets to the correct destination. I've done a similar exercise with a number of IP addresses within other subnets, and get the same result. bash-4.4# traceroute 10.43.54.17 I've looked at iptables, and cannot find any reference to some of these subnets, so I'm at a loss. What have I done wrong? |
Beta Was this translation helpful? Give feedback.
-
Hi @brandond, sorry to hassle you but please can you help? |
Beta Was this translation helpful? Give feedback.
-
I have also been stuck on the same problem for days now. the install argument
I suspect something with the kube-proxy is not working since the kube proxy should intercept requests going to the --service-cidr. As far as I understood. To gather debug info I opened the busy box and queried the DNS server in the cluster
When I try to traceroute to that IP
it gets forwarded to the My gateway and then to my ISP. When I do get svc -A I get my nats server.
@brandond maybe you can help with this I tried to debug this further and tried to assign the service cider to my eth0 ,cni0, lo, flannel.1 , interface but this also didn't fix it.
In my ip-tables I can find only this line containing 43
|
Beta Was this translation helpful? Give feedback.
-
I have the same problem, did you solve it? |
Beta Was this translation helpful? Give feedback.
-
Hi there,
I'm new to k3s and I'm sure this is not the correct place to be posting for help, but I've been stuck for days on this point. I cannot seem to route to specific subnets in my installation. It seems to be a routing issue, as if I do a trace route from inside a container, the subnet I am trying to route to goes to the default gateway of my home network rather than routing on the internal subnets defined by k3s. I'm using metallb swell, not sure if that's an issue or not. Can someone help, or point me in the correct direction of the appropriate forum to get some help please?
Thanks in advance,
Mark
Beta Was this translation helpful? Give feedback.
All reactions