Skip to content

Instantly share code, notes, and snippets.

@gtaylor
Last active December 27, 2022 08:15
Show Gist options
  • Save gtaylor/e5273bf7c632574b2a0c3977cf7d3723 to your computer and use it in GitHub Desktop.
Save gtaylor/e5273bf7c632574b2a0c3977cf7d3723 to your computer and use it in GitHub Desktop.
EdgeRouter + Calico BGP peering
apiVersion: crd.projectcalico.org/v1
kind: BGPPeer
metadata:
name: global
spec:
peerIP: 192.168.2.1
asNumber: 1
---
apiVersion: crd.projectcalico.org/v1
kind: BGPConfiguration
metadata:
name: default
spec:
logSeverityScreen: Info
nodeToNodeMeshEnabled: true
asNumber: 64512
serviceClusterIPs:
- cidr: 10.2.0.0/16
configure
set protocols static route 10.1.0.0/16 next-hop 192.168.2.1 description "Kubernetes pods"
set protocols static route 10.2.0.0/16 next-hop 192.168.2.1 description "Kubernetes services"
set protocols bgp 1 parameters router-id 192.168.2.1
set protocols bgp 1 neighbor 192.168.2.68 remote-as 64512
commit ; save
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment