Skip to content

Decouple Calico and Metallb from RKE2 manifests

Cristian Manda requested to merge cm/test-calico into main

This MR disables the RKE2 installed cni and instead deploys the cni, metallb and kubernetes-vip based on static manifests produced in s-c-c.

As of !352 (comment 1944538977)

the approach of using static manifests is based on the finding that rke2 embedded helm controller is actually a one shot apply, while the rke2's /var/lib/rancher/rke2/server/-manifests/ auto-deploying manifests feature is recurrent apply.
This way allowing for a GitOps controller to override later in the lifecycle

All files generated by s-c-c that we use to deploy and configure Calico, Metallb and kubernetes-vip are moved under the same directory in order to not let RKE2 manage them by itself.

Tested with sylva-projects/sylva-core!2255

Edited by Cristian Manda

Merge request reports