Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions component/espejote-templates/egress-gateway.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ local NamespaceEgressPolicy =
egress_range,
namespace,
],
[if bgp_egress_ip then 'cilium.syn.tools/experimental-policy']: 'true',
'cilium.syn.tools/egress-ip': egress_ip,
'cilium.syn.tools/interface-prefix': interface_prefix,
'cilium.syn.tools/egress-range': egress_range,
Expand Down
12 changes: 11 additions & 1 deletion docs/modules/ROOT/pages/references/parameters.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -408,12 +408,22 @@ When this field is omitted or empty, the component generates egress policies wit
Such policies assign the egress IP to all traffic originating in the namespace.
====

[IMPORTANT]
====
Support for configuring BGP egress IPs through `egress_ip_ranges` is currently experimental.

Policies which configure BGP egress IPs have an additional annotation `cilium.syn.tools/experimental-policy=true`.
====

[NOTE]
====
Field `bgp_policy_labels` is optional.
The component's support for configuring BGP egress IPs through `egress_ip_ranges` is currently experimental.

When the field is provided, and not an empty object, the component adds the contents as entries in `metadata.labels` of the resulting policies.
In this case, the component also configures the egress policies directly with the egress IP and `maxGatewayNodes: 1` in the `spec.egressGroups` entry.
In this case, the component configures the egress policies with https://docs.isovalent.com/v1.16/configuration-guide/networking/egress-gateway/introduction.html#requirements-for-egress-ip-and-ipam-feature[Cilium's Egress Gateawy IPAM] and `maxGatewayNodes: 1` in the `spec.egressGroups` entry.

Please note that policies which use EGW IPAM will ignore static routes on the active gateway node (as of Cilium 1.16.16 and Cilium 1.17.9).

If the field is omitted or empty, the component configures the egress group with the interface name and doesn't set `maxGatewayNodes`.
====
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ metadata:
in egress range "egress_f" (192.0.2.160 - 192.0.2.190) to namespace qux.
cilium.syn.tools/egress-ip: 192.0.2.160
cilium.syn.tools/egress-range: 192.0.2.160 - 192.0.2.190
cilium.syn.tools/experimental-policy: 'true'
cilium.syn.tools/interface-prefix: egress_f
cilium.syn.tools/source-namespace: qux
labels:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ spec:
egress_range,
namespace,
],
[if bgp_egress_ip then 'cilium.syn.tools/experimental-policy']: 'true',
'cilium.syn.tools/egress-ip': egress_ip,
'cilium.syn.tools/interface-prefix': interface_prefix,
'cilium.syn.tools/egress-range': egress_range,
Expand Down