Creating a route in main routing table | Создание маршрута в основной таблице “main” |
yaml apiVersion: network.deckhouse.io/v1alpha1 kind: RoutingTable metadata: name: myrt-main spec: ipRoutingTableID: 254 # main routing table id is 254 routes:
| yaml apiVersion: network.deckhouse.io/v1alpha1 kind: RoutingTable metadata: name: myrt-main spec: ipRoutingTableID: 254 # main routing table id is 254 routes:
|
According to this resource, the route | Согласно данному ресурсу на узлах, попадающих под |
shell $ ip -4 route ls … 10.0.0.0/8 via 192.168.0.1 dev eth0 realm 216 … | shell $ ip -4 route ls … 10.0.0.0/8 via 192.168.0.1 dev eth0 realm 216 … |
The | Инструкция |
Creating a route in additional routing table | Создание маршрута в дополнительной таблице |
yaml apiVersion: network.deckhouse.io/v1alpha1 kind: RoutingTable metadata: name: myrt-extra spec: routes:
| yaml apiVersion: network.deckhouse.io/v1alpha1 kind: RoutingTable metadata: name: myrt-extra spec: routes:
|
According to this resource, the route | Согласно данному ресурсу на узлах, попадающих под |
shell $ ip -4 route ls table 10000 default via 192.168.0.1 dev eth0 realm 216 | shell $ ip -4 route ls table 10000 default via 192.168.0.1 dev eth0 realm 216 |
Creating an
| Создание
|
yaml apiVersion: network.deckhouse.io/v1alpha1 kind: IPRuleSet metadata: name: myiprule spec: rules:
| yaml apiVersion: network.deckhouse.io/v1alpha1 kind: IPRuleSet metadata: name: myiprule spec: rules:
|
According to this resource, an ip rule will be created on the nodes falling under | Согласно данному ресурсу на узлах, попадающих под |
shell $ ip rule list … 50: from 192.168.111.0/24 to 172.16.8.0/21 ipproto tcp sport 100-200 dport 300-400 lookup 10000 realms 216 50: from 192.168.222.0/24 to 8.8.8.8 ipproto tcp sport 100-200 dport 300-400 lookup 10000 realms 216 50: from 192.168.222.0/24 to 172.16.8.0/21 ipproto tcp sport 100-200 dport 300-400 lookup 10000 realms 216 50: from 192.168.111.0/24 to 8.8.8.8 ipproto tcp sport 100-200 dport 300-400 lookup 10000 realms 216 … | shell $ ip rule list … 50: from 192.168.111.0/24 to 172.16.8.0/21 ipproto tcp sport 100-200 dport 300-400 lookup 10000 realms 216 50: from 192.168.222.0/24 to 8.8.8.8 ipproto tcp sport 100-200 dport 300-400 lookup 10000 realms 216 50: from 192.168.222.0/24 to 172.16.8.0/21 ipproto tcp sport 100-200 dport 300-400 lookup 10000 realms 216 50: from 192.168.111.0/24 to 8.8.8.8 ipproto tcp sport 100-200 dport 300-400 lookup 10000 realms 216 … |