techno-tim / k3s-ansible

The easiest way to bootstrap a self-hosted High Availability Kubernetes cluster. A fully automated HA k3s etcd install with kube-vip, MetalLB, and more. Build. Destroy. Repeat.
https://technotim.live/posts/k3s-etcd-ansible/
Apache License 2.0
2.41k stars 1.05k forks source link

k3s_server_post: add cilium_bgp_neighbors parameter #579

Closed berendt closed 1 month ago

berendt commented 1 month ago

With the cilium_bgp_neighbors parameter it is possible to define multiple BGP peer ASN & address pairs for Cilium.

Sample:

cilium_bgp_neighbors:
  - peer_address: 192.168.128.10
    peer_asn: 64512
  - peer_address: 192.168.128.11
    peer_asn: 64512
  - peer_address: 192.168.128.12
    peer_asn: 64512

It is possible to merge further lists with cilium_bgp_neighbors__* parameters.

Sample:

cilium_bgp_neighbors__extra:
  - peer_address: 192.168.128.10
    peer_asn: 64512
cilium_bgp_neighbors:
  - peer_address: 192.168.128.11
    peer_asn: 64512
  - peer_address: 192.168.128.12
    peer_asn: 64512

This will result in the following list of BGP peer ASN & address pairs:

- peer_address: 192.168.128.10
  peer_asn: 64512
- peer_address: 192.168.128.11
  peer_asn: 64512
- peer_address: 192.168.128.12
  peer_asn: 64512
berendt commented 1 month ago

Sorry, I forgot to add the cilium_bgp_neighbors_groups parameter to the defaults .

berendt commented 1 month ago

@timothystewart6 Can you please re-approve the the CI run.

timothystewart6 commented 1 month ago

Thank you!