Skip to content

Commit 90d6443

Browse files
committed
fix example for egress over BGP
1 parent 96f01b3 commit 90d6443

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

docs/aci/examples/advanced.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ The following subnets will be used:
1717
* Egress Node subnet: `192.168.2.80/28`
1818
* Load-balancer services pool: `192.168.2.48/28`
1919

20+
{: .note }
21+
In this example the ESG configuration is optional and can be completely removed if you choose to advertise the Egress IP over BGP as explained in the [Cilium Egress design](../../advanced_design/#cilium-egress-design) section.
2022

2123
![alt text](../images/openshift-topology.png)
2224
## ACI configuration
@@ -228,6 +230,10 @@ spec:
228230
selector:
229231
matchLabels:
230232
advertise: bgp
233+
- advertisementType: EgressGateway
234+
selector:
235+
matchLabels:
236+
advertise: bgp
231237
---
232238
apiVersion: isovalent.com/v1alpha1
233239
kind: IsovalentBFDProfile
@@ -393,6 +399,8 @@ The egress configuration is extremely simple: once the nodes are configured with
393399
* Select wich nodes are part of the `egressGroups` with a `nodeSelector`
394400
* Specify which `egressIP` a node has to use. Note: The `egressIP` needs to be pre-configured on the node. Commonly as a secondary IP on the interface. This should be done prior to deploying the policy.
395401
* Select which pods the `IsovalentEgressGatewayPolicy` should apply to by using a `podSelector`
402+
* If using BGP advertisement add the `advertise: bgp` label
403+
396404

397405
For example the configuration below will NAT all traffic (`destinationCIDRs`) initiated from pods in the `egress-1` namespace (`io.kubernetes.pod.namespace`) using two nodes (`kubernetes.io/hostname`) and two IPs (`egressIP: 192.168.2.83 and 192.168.2.84`)
398406

@@ -401,6 +409,8 @@ apiVersion: isovalent.com/v1
401409
kind: IsovalentEgressGatewayPolicy
402410
metadata:
403411
name: egress-1
412+
labels:
413+
advertise: bgp
404414
spec:
405415
destinationCIDRs:
406416
- 0.0.0.0/0
@@ -420,7 +430,7 @@ spec:
420430

421431
```
422432

423-
These two `egressIPs` can now easily be mapped by using an IP selector on the ESG. This allows for administrators to control access per application by using contracts. This example shows access control per namespace, but this can also be narrowed down further to a subset of pods.
433+
These two `egressIPs` can now easily be mapped in an External EPG or ESG. This allows for administrators to control access per application by using contracts. This example shows access control per namespace, but this can also be narrowed down further to a subset of pods.
424434

425435

426436
[Next](/cilium-dc-design/docs/aci/examples/simple/){: .btn }

0 commit comments

Comments
 (0)