Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

k3s: use cilium with BGP #2483

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion environments/infrastructure/configuration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,8 @@ thanos_sidecar_prometheus_url: "https://api-int.testbed.osism.xyz:9091/"
##########################
# k3s

metal_lb_ip_range: "192.168.129.1-192.168.129.254"
cilium_bgp: true
cilium_bgp_my_asn: "64513"
cilium_bgp_peer_asn: "64512"
cilium_bgp_peer_address: "192.168.128.5"
cilium_bgp_lb_cidr: "172.31.252.0/23"
1 change: 0 additions & 1 deletion inventory/20-roles
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ testbed-control-nodes
testbed-resource-nodes

[k3s_node:children]
testbed-managers
#testbed-resource-nodes

# NOTE: After the initial import of the inventory in the netbox,
Expand Down
3 changes: 3 additions & 0 deletions inventory/99-overwrite
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ ceph-resource

[ceph-rgw:children]
ceph-resource

[frr:children]
manager
15 changes: 14 additions & 1 deletion inventory/group_vars/testbed-managers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,18 @@ network_dispatcher_scripts:
# kolla

network_interface: "{{ ansible_local.testbed_network_devices.management }}"

##########################################################
# k3s

k3s_interface: vxlan1
flannel_iface: "{{ k3s_interface }}"
cilium_iface: "{{ k3s_interface }}"

##########################################################
# frr

frr_uplinks_groups:
k3s_all
frr_local_as: 64512
frr_loopback_v4: "192.168.128.{{ node_id }}"
frr_type: k3s_cilium
19 changes: 17 additions & 2 deletions inventory/group_vars/testbed-nodes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,6 @@ network_dispatcher_scripts:
# kolla

network_interface: "{{ ansible_local.testbed_network_devices.management }}"
k3s_interface: vxlan1
flannel_iface: "{{ k3s_interface }}"
neutron_external_interface: vxlan0
octavia_network_interface: ohm0

Expand All @@ -104,3 +102,20 @@ devices: "{{ ansible_local.testbed_ceph_devices }}"
# NOTE: to use the third block device for Ceph change this parameter as follows
# ceph_osd_devices: "{{ ansible_local.testbed_ceph_osd_devices_all }}"
# devices: "{{ ansible_local.testbed_ceph_devices }}"

##########################################################
# k3s

k3s_interface: vxlan1
cilium_iface: "{{ k3s_interface }}"

# frr -> k3s
frr_uplinks__k3s_node:
- interface: vxlan1
address: "192.168.128.{{ node_id }}"
remote_as: 64513

# k3s -> frr
cilium_bgp_neighbors__node:
- peer_address: "192.168.128.{{ node_id }}"
peer_asn: 64512