Open alankan-finocomp opened 2 years ago
I think the "imported" cluster created via rancher2_cluster (like below) is able to import rke2 cluster.
resource "rancher2_cluster" "foo-imported" {
name = "foo-imported"
description = "Foo rancher2 imported cluster"
}
Why do you need that in rancher2_cluster_v2???
There is an example for creating an "imported" cluster via rancher2_cluster but not in rancher2_cluster_v2.
Since
kubernetes_version
is mandatory inrancher2_cluster_v2
, I triedHowever, if I create an "import existing" cluster via GUI like this: The manual one
gui-created
looks different from the one created by Terraform, most importantly, without errorKubernetesVersion not set on fleet-default/empty-string
.I tried ignoring that and run the registration command in downstream cluster and eventually no luck. I also tried reversely loading the
gui-created
one as Terraform resource and found thekubernetes_version = null
which it's impossible to be mimicked...Any advice? Thank you very much in advance :bow: