Adding Routes
- Last Updated: June 4, 2024
- 1 minute read
- LoadMaster
- LoadMaster GA
- Documentation
To see what routes are necessary, you can use the following Kubernetes commands.
For most CNIs the following can be used:
kubectl get nodes -o jsonpath="{range .items[*]}{'Destination: '}{.spec.podCIDR}{'\t'}{'Gateway: '}{.status.addresses[0].address}{'\n'}{end}"
For example:
[root@master-node ~]# kubectl get nodes -o jsonpath="{range .items[*]}{'Destination: '}{.spec.podCIDR}{'\t'}{'Gateway: '}{.status.addresses[0].address}{'\n'}{end}"
Destination: 192.168.0.0/24 Gateway: 10.1.151.30
Destination: 192.168.1.0/24 Gateway: 10.1.151.31
Destination: 192.168.2.0/24 Gateway: 10.1.151.32
The above command tells us what routes are needed on the LoadMaster and you can add these routes in the LoadMaster UI by going to System Configuration > Network Setup > Additional Routes.
|
Destination |
Gateway |
|---|---|
|
192.168.0.0/24 |
10.1.151.30 |
| 192.168.1.0/24 | 10.1.151.31 |
| 192.168.2.0/24 | 10.1.151.32 |