Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f04ebac488 | ||
|
|
7a595cf984 | ||
|
|
4397f6aadd | ||
|
|
89354e5547 |
@@ -0,0 +1,49 @@
|
|||||||
|
---
|
||||||
|
apiVersion: cilium.io/v2
|
||||||
|
kind: CiliumBGPPeerConfig
|
||||||
|
metadata:
|
||||||
|
name: bgp-cilium-peers
|
||||||
|
spec:
|
||||||
|
timers:
|
||||||
|
holdTimeSeconds: 9
|
||||||
|
keepAliveTimeSeconds: 3
|
||||||
|
gracefulRestart:
|
||||||
|
enabled: true
|
||||||
|
restartTimeSeconds: 15
|
||||||
|
families:
|
||||||
|
- afi: ipv4
|
||||||
|
safi: unicast
|
||||||
|
advertisements:
|
||||||
|
matchLabels:
|
||||||
|
advertise: "bgp"
|
||||||
|
---
|
||||||
|
apiVersion: cilium.io/v2
|
||||||
|
kind: CiliumBGPClusterConfig
|
||||||
|
metadata:
|
||||||
|
name: bgp-opnsense
|
||||||
|
spec:
|
||||||
|
nodeSelector:
|
||||||
|
matchLabels:
|
||||||
|
kubernetes.io/role: "worker"
|
||||||
|
bgpInstances:
|
||||||
|
- name: "bgp-cilium-cluster"
|
||||||
|
localASN: 64513 # Cilium ASN
|
||||||
|
peers:
|
||||||
|
- name: "opnsense"
|
||||||
|
peerASN: 64512 # OPNsense ASN
|
||||||
|
peerAddress: 192.168.66.1 # OPNsense IP on the Lab network
|
||||||
|
peerConfigRef:
|
||||||
|
name: "bgp-cilium-peers"
|
||||||
|
---
|
||||||
|
apiVersion: cilium.io/v2
|
||||||
|
kind: CiliumBGPAdvertisement
|
||||||
|
metadata:
|
||||||
|
name: bgp-advertisement
|
||||||
|
labels:
|
||||||
|
advertise: bgp
|
||||||
|
spec:
|
||||||
|
advertisements:
|
||||||
|
- advertisementType: "Service"
|
||||||
|
service:
|
||||||
|
addresses:
|
||||||
|
- LoadBalancerIP
|
||||||
Reference in New Issue
Block a user