Hey all, I'm deploying rke2 cluster via the rancher2 terraform provider. I'm using terraform to create and provision a cluster in a single terraform apply. I use the rancher2 app resource to provision helm charts into the cluster. I don't see any way to manage manifest resources with that terraform provider tho. It appears to be helm or nothing. Does anyone know a creative way to natively support manifests without introducing other providers?
creamy-crayon-86622
05/28/2025, 12:41 AM
Ive contemplated creating a helm chart for all my "customizations" too but I feel like thats a lot of work 🙂
b
bumpy-tomato-36167
05/28/2025, 2:56 AM
The rke_config argument in the rancher2_cluster_v2 resource has a place for manifests
c
creamy-crayon-86622
05/28/2025, 11:40 AM
Thanks Matt, I have been using that as well but I have a chicken/egg problem when I add a manifest there for CRDs that do not exist at that time so Ive avoided using that
b
bumpy-tomato-36167
05/28/2025, 3:22 PM
You could use the hashicorp/kubernetes provider's manifest resource.
bumpy-tomato-36167
05/28/2025, 3:25 PM
I believe rke2 monitors the manifest directory and deploys any manifest placed there. You could use a terraform_data resource with a file provisioner to move the manifest over at the correct time.