🪦 DISCONTINUED Further Lokomotive development has been discontinued. Lokomotive is a 100% open-source, easy to use and secure Kubernetes distribution from the volks at Kinvolk
The Packet CCM is supposed to support enriching Node objects directly with BGP metadata using k8s annotations. We should look into using this mechanism for BGP peer autodiscovery and get rid of all of the above.
Currently we are doing some wiring in Terraform to gather BGP metadata from Packet and pass it to MetalLB via node labels:
https://github.com/kinvolk/lokomotive/blob/3008e5a1cd7cc478482a7c2b365e8a02ae25fc95/assets/terraform-modules/packet/flatcar-linux/kubernetes/workers/cl/worker.yaml.tmpl#L89-L91
https://github.com/kinvolk/lokomotive/blob/3008e5a1cd7cc478482a7c2b365e8a02ae25fc95/assets/terraform-modules/packet/flatcar-linux/kubernetes/workers/cl/worker.yaml.tmpl#L114-L116
https://github.com/kinvolk/lokomotive/blob/3008e5a1cd7cc478482a7c2b365e8a02ae25fc95/assets/terraform-modules/packet/flatcar-linux/kubernetes/workers/workers.tf#L52-L57
https://github.com/kinvolk/lokomotive/blob/3008e5a1cd7cc478482a7c2b365e8a02ae25fc95/assets/terraform-modules/packet/flatcar-linux/kubernetes/workers/workers.tf#L74
The Packet CCM is supposed to support enriching
Node
objects directly with BGP metadata using k8s annotations. We should look into using this mechanism for BGP peer autodiscovery and get rid of all of the above.