2024-09-08 02:05:05 +00:00
|
|
|
apiVersion: cilium.io/v2alpha1
|
|
|
|
kind: CiliumBGPClusterConfig
|
|
|
|
metadata:
|
|
|
|
name: cilium-bgp
|
|
|
|
namespace: kube-system
|
|
|
|
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
|
|
|
|
namespace: kube-system
|
|
|
|
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
|
|
|
|
namespace: kube-system
|
|
|
|
labels:
|
|
|
|
advertise: "bgp-public"
|
|
|
|
spec:
|
|
|
|
advertisements:
|
|
|
|
- advertisementType: "Service"
|
|
|
|
service:
|
|
|
|
addresses:
|
|
|
|
- ExternalIP
|
|
|
|
- LoadBalancerIP
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
2024-09-08 02:44:13 +00:00
|
|
|
bgp/service-type: public
|