03/29/2023, 9:48 PM
Anyone have any opinions on the best way to automate RKE downstream cluster creation? I'm using TF Rancher2 Provider and I just have so many consistency issues. I can't get a clean build and destroy to work. I'm at a point where creating a cluster using node templates all works, but destroy has issues where node templates don't delete properly or cloud credential key will be deleted somehow, but TF will fail to delete it because it doesn't exist. I'm also a little confused how to customize docker on the RKE nodes, things like mirror and dockerhub credentials that require a docker restart. Do I build a prebuilt AMI (in AWS) with everything loaded, or is there a way to do this with the node template configuration?