Hey all, I'm deploying rke2 cluster via the ranche...
# discuss-terraform
c
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?
Ive contemplated creating a helm chart for all my "customizations" too but I feel like thats a lot of work 🙂
b
The rke_config argument in the rancher2_cluster_v2 resource has a place for manifests
c
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
You could use the hashicorp/kubernetes provider's manifest resource.
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.