Skip to main content
apiVersion: v1alpha1
kind: RoutingRuleConfig
name: "1000" # Priority of the routing rule.
src: 10.0.0.0/8 # Source address prefix to match.
table: "100" # The routing table to look up if the rule matches.
action: unicast # The action to perform when the rule matches.

# # Destination address prefix to match.
# dst: 192.168.0.0/16

# # Match packets arriving on this interface.
# iifName: eth0

# # Match packets going out on this interface.
# oifName: eth1

# # Match packets with this firewall mark value.
# fwMark: 256

# # Mask for the firewall mark comparison.
# fwMask: 65280
FieldTypeDescriptionValue(s)
namestringPriority of the routing rule.
Lower values are matched first.
Must be between 1 and 32765 (excluding reserved priorities [0 32500 32501 32766 32767]).
Must be unique across all routing rules in the configuration.
srcPrefixSource address prefix to match.
If empty, matches all sources.
dstPrefixDestination address prefix to match.
If empty, matches all destinations.
tableRoutingTableThe routing table to look up if the rule matches.
actionRoutingRuleActionThe action to perform when the rule matches.
Defaults to “unicast” (table lookup).
unicast
blackhole
unreachable
prohibit
iifNamestringMatch packets arriving on this interface.
oifNamestringMatch packets going out on this interface.
fwMarkuint32Match packets with this firewall mark value.
fwMaskuint32Mask for the firewall mark comparison.