22 lines
506 B
YAML
22 lines
506 B
YAML
|
---
|
||
|
# https://docs.cilium.io/en/latest/network/l2-announcements
|
||
|
apiVersion: cilium.io/v2alpha1
|
||
|
kind: CiliumL2AnnouncementPolicy
|
||
|
metadata:
|
||
|
name: policy
|
||
|
spec:
|
||
|
loadBalancerIPs: true
|
||
|
interfaces:
|
||
|
- ^enp.*
|
||
|
nodeSelector:
|
||
|
matchLabels:
|
||
|
kubernetes.io/os: linux
|
||
|
---
|
||
|
apiVersion: cilium.io/v2alpha1
|
||
|
kind: CiliumLoadBalancerIPPool
|
||
|
metadata:
|
||
|
name: pool
|
||
|
spec:
|
||
|
cidrs:
|
||
|
- cidr: "{{ (ansible_default_ipv4.network + '/' + ansible_default_ipv4.netmask) | ansible.utils.ipaddr('network/prefix') }}"
|