29 lines
657 B
YAML
29 lines
657 B
YAML
---
|
|
# https://docs.cilium.io/en/latest/network/bgp-control-plane/
|
|
apiVersion: cilium.io/v2alpha1
|
|
kind: CiliumBGPPeeringPolicy
|
|
metadata:
|
|
name: l3-policy
|
|
spec:
|
|
nodeSelector:
|
|
matchLabels:
|
|
kubernetes.io/os: linux
|
|
virtualRouters:
|
|
- localASN: 64513
|
|
neighbors:
|
|
- peerAddress: "192.168.10.2/32"
|
|
peerASN: 64512
|
|
peerPort: 179
|
|
serviceSelector:
|
|
matchExpressions:
|
|
- {key: somekey, operator: NotIn, values: ['never-used-value']}
|
|
---
|
|
apiVersion: cilium.io/v2alpha1
|
|
kind: CiliumLoadBalancerIPPool
|
|
metadata:
|
|
name: l3-pool
|
|
spec:
|
|
allowFirstLastIPs: "Yes"
|
|
blocks:
|
|
- cidr: "172.16.10.0/24"
|