--- apiVersion: cilium.io/v2alpha1 kind: CiliumLoadBalancerIPPool metadata: name: pool spec: allowFirstLastIPs: "No" blocks: - cidr: "#{ network.node_cidr }#" --- apiVersion: cilium.io/v2alpha1 kind: CiliumL2AnnouncementPolicy metadata: name: l2-policy spec: loadBalancerIPs: true # NOTE: interfaces might need to be set if you have more than one active NIC on your hosts # interfaces: # - ^eno[0-9]+ # - ^eth[0-9]+ nodeSelector: matchLabels: kubernetes.io/os: linux #% if cilium_bgp_enabled %# --- apiVersion: cilium.io/v2alpha1 kind: CiliumBGPAdvertisement metadata: name: bgp-advertisement-config labels: advertise: bgp spec: advertisements: - advertisementType: Service service: addresses: - LoadBalancerIP selector: matchExpressions: - { key: somekey, operator: NotIn, values: ["never-used-value"] } --- apiVersion: cilium.io/v2alpha1 kind: CiliumBGPPeerConfig metadata: name: bgp-peer-config-v4 spec: families: - afi: ipv4 safi: unicast advertisements: matchLabels: advertise: bgp --- apiVersion: cilium.io/v2alpha1 kind: CiliumBGPClusterConfig metadata: name: bgp-cluster-config spec: nodeSelector: matchLabels: kubernetes.io/os: linux bgpInstances: - name: instance-#{ cilium.bgp.node_asn }# localASN: #{ cilium.bgp.node_asn }# peers: - name: peer-#{ cilium.bgp.router_asn }#-v4 peerASN: #{ cilium.bgp.router_asn }# peerAddress: #{ cilium.bgp.router_addr }# peerConfigRef: name: bgp-peer-config-v4 #% endif %#