book-of-kubernetes / examples

Examples for The Book of Kubernetes
MIT License
146 stars 71 forks source link

Routes missing in Chapter 8 Calico two_pods example #13

Open bcraig108 opened 1 year ago

bcraig108 commented 1 year ago

I needed to manually add routes on host01 and host02 in order to allow pod1 to ping pod2 and vice-versa:

root@host01:~# ip route add 172.31.89.192/26 via 192.168.61.12 dev enp0s8 proto 80 onlink

root@host02:~# ip route add 172.31.239.192/26 via 192.168.61.11 dev enp0s8 proto 80 onlink

AlanHohn commented 1 year ago

Calico (specifically the calico-node DaemonSet) should be adding these as part of its initial setup.

If you still have this environment available, can you kubectl logs the various calico-node Pods to see if it's reporting any errors?