Skip to content

Commit 1290c19

Browse files
committed
feat(bgp): Add Cilium BGP peer configuration and update related resources
1 parent 48287dc commit 1290c19

File tree

5 files changed

+28
-2
lines changed

5 files changed

+28
-2
lines changed

infrastructure/clusters/feather-core/ipconfig/bgp-dc01.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,6 @@ spec:
1212
peers:
1313
- name: "opsense-dc01"
1414
peerASN: 64504
15-
peerAddress: 10.200.3.1
15+
peerAddress: 10.200.3.1
16+
peerConfigRef:
17+
name: "cilium-peer"

infrastructure/clusters/feather-core/ipconfig/bgp-dc06.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,6 @@ spec:
1212
peers:
1313
- name: "opsense-dc01"
1414
peerASN: 64504
15-
peerAddress: 10.200.3.1
15+
peerAddress: 10.200.3.1
16+
peerConfigRef:
17+
name: "cilium-peer"
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
apiVersion: cilium.io/v2alpha1
2+
kind: CiliumBGPPeerConfig
3+
metadata:
4+
name: cilium-peer
5+
spec:
6+
gracefulRestart:
7+
enabled: true
8+
restartTimeSeconds: 15
9+
families:
10+
- afi: ipv4
11+
safi: unicast
12+
advertisements:
13+
matchLabels:
14+
advertise: "bgp"
15+
- afi: ipv6
16+
safi: unicast
17+
advertisements:
18+
matchLabels:
19+
advertise: "bgp"

infrastructure/clusters/feather-core/ipconfig/cilium-bgpadvertisement-lb.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ apiVersion: cilium.io/v2
22
kind: CiliumBGPAdvertisement
33
metadata:
44
name: bgp-advertisements
5+
labels:
6+
advertise: bgp
57
spec:
68
advertisements:
79
- advertisementType: "Service"

infrastructure/clusters/feather-core/ipconfig/kustomization.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33

44
resources:
5+
- bgp-peer-config.yaml
56
- lb-dc01.yaml
67
- lb-dc06.yaml
78
- bgp-dc01.yaml

0 commit comments

Comments
 (0)