Replies: 4 comments 8 replies
-
@captnCC You are right; we could have generated them and placed them inside the auto-deploy folder. But at the time, we did not realize that was possible, and it also lacks the advantage of controlling the sequence. But definitely, some things could go there! To answer your first question, YES, generating those via Terraform would work and allow for more customizations. But it's really in our objective to not support third parties utilities that are not directly related to "deploying an optimized cluster" which we try to do first, and would add more maintenance load. So, for now, the |
Beta Was this translation helpful? Give feedback.
-
Thanks for taking this on, @captnCC!
I do believe this should be possible by using fileset together with templatefile and will gladly try to help if necessary (either here, or ping me at [email protected] if you use matrix). |
Beta Was this translation helpful? Give feedback.
-
Consider using fluxcd so it could be used to allow for cluster upgrade once deployed. |
Beta Was this translation helpful? Give feedback.
-
The feature was released in v1.5.6, thanks to @captnCC! 🎯 |
Beta Was this translation helpful? Give feedback.
-
As described already by @mysticaltech here k3s supports automatically adding custom manifests by deploying them to
/var/lib/rancher/k3s/server/manifests
on the init node. DocsFrom here on I see 2 paths for the implementation:
extra-manifests
directory straight to the serverThe first one would be pretty simple and easy to use/implement. But in my opinion it lacks support for customisation of the manifests in terraform (to set some variables etc). Or correct me if it is possible with terraform to run them through a template engine before running the cluster module itself.
The second option would be more complicated, but leaves much more room for customisation of the files before pushing them.
This would open the possibility of using the complete yaml toolset that terraform offers before encoding and placing it on the server.
Or just adding support for both 🤷🏻♂️
While looking at the existing code for deploying the manifest for stuff like longhorn, cert-manager, hetzner-csi, I wonder if there is a reason they are placed into
/var/post-install
and executed manual instead of the taking the route of the auto-deploying manifest?Beta Was this translation helpful? Give feedback.
All reactions