Hello Guys Is there any way to provision RKE2 with...
# terraform-provider-rancher2
t
Hello Guys Is there any way to provision RKE2 with rancher on top of it using terrraform provider
a
I have used a modified version of this in the past: https://ranchergovernment.com/blog/airgapping-made-easy-with-rke2-and-rancher And another good example (non-airgapped) is here: https://infohub.delltechnologies.com/en-us/p/using-terraform-to-deploy-suse-rancher-in-an-apex-private-cloud-environment-1/ These should be considered inspirational examples as your use case and environment will be different.
b
is the ask to provision Rancher in a downstream cluster from a Rancher cluster?
also, I am really trying to retire this channel in favor of the #C07M052K9D0 channel.
t
My goal is to create Rke2 cluster with Rancher as controller then create clusters using the provider. But I can’t do it using the provider rancher v2 . I have provisioned RKE2 using user init then deploy Rancher using helm in top of it
b
I have the same goals in this module: https://github.com/rancher/terraform-rancher2-aws If you aren't on AWS you might still be able to use it as a guideline. Check out the examples for how to provision what we call "downstream clusters" which is just clusters controlled by Rancher.
My examples only use RKE2, not k3s or any other kubernetes distro.