Is it possible to import a Harvester cluster fully...
# harvester
g
Is it possible to import a Harvester cluster fully with Terraform into Rancher? I done the initial config, settings, bootstrap and added the Harvester UI with it but I'm not getting a cluster registration token in the regular cluster resource. The v2 requires a kubernetes version and more config than I see getting applied in the portal with F12 Dev options. Through that way I've noticed that it applies a "provider.cattle.io" = "harvester" label which means I can create the Harvester cluster resource but I'm not getting back a cluster registration token to pass to Harvester. Anyone got any idea how to retrieve this?
✅ 1
I just looked at the terraform state where it is getting populated! It just seems to not have an export available in the provider?
PEBKAC 😒
a
You might also try posting this to the #C07M052K9D0
w
I am doing something similar via a custom gitops workflow (not strictly terraform) and using external-secrets-operator to push the secret to a store, for pull/sync by the harvester cluster. a similar workaround may work with terraform.