Enable BGP on worker nodes on Packet
Our Packet deployment option relies on BGP for load balancing via
MetalLB. For this we need to enable BGP on each Packet machine which
serves a worker node.
@@ -11,6 +11,12 @@ resource "packet_device" "worker_nodes" {
user_data = "${element(data.ct_config.worker-ignitions.*.rendered, count.index)}"
}
+resource "packet_bgp_session" "bgp" {
+ count = "${var.worker_count}"
+ device_id = "${element(packet_device.worker_nodes.*.id, count.index)}"
+ address_family = "ipv4"
+}
+
data "ct_config" "worker-ignitions" {
count = "${var.worker_count}"
content = "${element(data.template_file.worker-configs.*.rendered, count.index)}"
