V
V
Vadim2020-07-06 19:37:00
linux
Vadim, 2020-07-06 19:37:00

How to explain routing table on Kubernetes worker node?

Hello everyone,

here is the output of the ip route command, which was run on one of the working nodes of the cluster (in the cloud).
Working Calico Pod

$ip route
default via 10.6.16.1 dev eth0 
10.6.16.0/21 dev eth0 proto kernel scope link src 10.6.22.111 
111.97.95.0/26 via 10.6.145.224 dev tunl0 proto bird onlink 
111.98.108.64/26 via 10.6.144.128 dev tunl0 proto bird onlink 
111.98.163.0/26 via 10.6.147.100 dev tunl0 proto bird onlink 
111.101.172.128/26 via 10.6.86.141 dev tunl0 proto bird onlink 
111.103.57.192/26 via 10.6.17.44 dev eth0 proto bird 
111.103.80.128/26 via 10.6.85.178 dev tunl0 proto bird onlink 
111.105.231.0/26 via 10.6.23.120 dev eth0 proto bird 
111.115.208.128/26 via 10.6.80.11 dev tunl0 proto bird onlink 
blackhole 111.126.117.128/26 proto bird 
111.126.117.129 dev cali8934275ty scope link 
111.126.117.132 dev cali983hfsdf4 scope link 
111.126.117.140 dev cali443gfby45 scope link


I'm just starting to work with Cube, so there is a lot of confusion for me here:
1) what is the ip address 10.6.16.1 if eth0 has the address 10.6.22.111/21 - Internet Gateway ?
2) what is the tunl0 interface and who creates it? Calico or Kubernetes itself?
3) Another node has two pods with the same IP=10.6.145.224 (calico -node-74hde and kube-proxy-internal pods ) - how does it work?
4) What is the blackhole route for?

all the best,
Vadim

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question