This message was deleted.
# rke2
a
This message was deleted.
b
if I am not mistaken, the parameters in
values.yaml
are coming from the upstream cilium chart. Are you sort of "forking" that chart and adding new capabilities?
r
Yeah sort of. Additions that is not in
values.yaml
. Therefore we need a way to edit the yaml files in the helmchart.
b
I don't know any easy way to do so 😕
because I guess it is not only adding stuff to the
values.yaml
but also to the manifests with some logic that reads those new values
r
Ok… is there any way to pull the chart from a internal source instead?
b
yeah
if you build the tarball
r
@bland-account-99790 not sure i am following how that is a solution, can you please explain further?
b
You build your Cilium helm chart fork into a tarball and make it available to the rke2 node. Then, you can replace the yaml that that installs the "embedded" cilium chart (using kind: HelmChart) with another yaml that installs your tarball as that link describes
r
@bland-account-99790 Yeah ok, sounds like that would work for us. But the problem is where do i “replace the yaml that that installs the “embedded” cilium chart”? We just specify that cni: cilium in
machine_global_config
(https://registry.terraform.io/providers/rancher/rancher2/latest/docs/resources/cluster_v2)
b
I see... I'm not that familiar with rke2 deployment in terraform
then, I'd say the easiest way would be for you to deploy with
cni: none
and then deploying the yaml with the
kind: HelmChart
pointing at your tarball in the directory that the helm controller is inspecting for helms to deploy. Let me find that path
Any Kubernetes manifests found in /var/lib/rancher/rke2/server/manifests will automatically be deployed to RKE2 in a manner similar to kubectl apply
r
@bland-account-99790 Thanks! Sounds like a possible solution 🙂 I will check it out!
b
You can deploy rke2 with terraform using
cni: none
. The cluster will start but not get ready because the cni would be missing. At some point, you can place the yaml in the node in that specific path and as soon as the helm controller installs it (I think max 1 minute), cni will get installed
👍 1
Please "fork" our rke2-cilium chart, which includes some extras (e.g. the cni plugins). If you use the upstream cilium chart, you might get extra problems
👍 1
Good luck Jonas 🙂
👍 1