2024-09-08 02:05:05 +00:00
|
|
|
apiVersion: cilium.io/v2alpha1
|
|
|
|
kind: CiliumBGPClusterConfig
|
|
|
|
metadata:
|
|
|
|
name: cilium-bgp
|
|
|
|
spec:
|
|
|
|
nodeSelector:
|
|
|
|
matchExpressions:
|
|
|
|
- key: node-role.kubernetes.io/control-plane
|
|
|
|
operator: DoesNotExist
|
|
|
|
bgpInstances:
|
|
|
|
- name: "bgp-public"
|
|
|
|
localASN: 65552
|
|
|
|
peers:
|
|
|
|
- name: "router"
|
|
|
|
peerASN: 65551
|
|
|
|
peerAddress: 192.168.1.1
|
|
|
|
peerConfigRef:
|
|
|
|
name: "cilium-peer-router"
|
|
|
|
---
|
|
|
|
apiVersion: cilium.io/v2alpha1
|
|
|
|
kind: CiliumBGPPeerConfig
|
|
|
|
metadata:
|
|
|
|
name: cilium-peer-router
|
|
|
|
spec:
|
|
|
|
timers:
|
|
|
|
holdTimeSeconds: 9
|
|
|
|
keepAliveTimeSeconds: 3
|
|
|
|
gracefulRestart:
|
|
|
|
enabled: true
|
|
|
|
restartTimeSeconds: 15
|
|
|
|
families:
|
|
|
|
- afi: ipv4
|
|
|
|
safi: unicast
|
|
|
|
advertisements:
|
|
|
|
matchLabels:
|
|
|
|
advertise: "bgp-public"
|
|
|
|
---
|
|
|
|
apiVersion: cilium.io/v2alpha1
|
|
|
|
kind: CiliumBGPAdvertisement
|
|
|
|
metadata:
|
|
|
|
name: bgp-public-ad
|
|
|
|
labels:
|
|
|
|
advertise: "bgp-public"
|
|
|
|
spec:
|
|
|
|
advertisements:
|
|
|
|
- advertisementType: "Service"
|
|
|
|
service:
|
|
|
|
addresses:
|
2024-09-12 21:52:21 +00:00
|
|
|
#- ClusterIP
|
2024-09-08 02:05:05 +00:00
|
|
|
- ExternalIP
|
|
|
|
- LoadBalancerIP
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
2024-09-08 02:44:13 +00:00
|
|
|
bgp/service-type: public
|