I have 3 servers and I want to connect them to build a k8s cluster over 10Gb NICs.
I am using this configuration right now.
server2 (10.0.0.2) <--> server1 <--> server3 (10.0.1.3)
how to connect 3 servers under two private networks
The problem with this config is that if server 1 is down, server2 and server3 cannot reach each other. And, if I add another cable between server2 and server3, it may solve the issue. But it seems each server will have at least 2 IPs (10.0.x.x). I have no idea how to tell k8s and ceph nodes to use fallback IP if one server is down.
So, is it possible to use "ip route" to let each server has an IP address that can be reached by each other without using a fallback ip after one server is down?
All 3 servers are in a datacenter. Adding a 10Gb switch is costly... It will be great if I don't need a switch.
Thanks
=======================================
Solution is found but not tested yet since I have not added the cable between server2 and server 3**
on server A
route add -host 192.168.1.22 dev eth1
route add -host 192.168.1.23 dev eth2
on server B
route add -host 192.168.1.21 dev eth1
route add -host 192.168.1.23 dev eth2
on server C
route add -host 192.168.1.21 dev eth1
route add -host 192.168.1.22 dev eth2