Open sgsoni opened 6 months ago
@alekc @gavinbunney : Is there any update for this ticket, I am blocked
your rancher_yaml_data content is changed/replaced on the run. as for the rest don't know, I am not familiar with rancher.
@alekc @gavinbunney : Actually Rancher_yaml_data content is not changed. There is an issue with the terraform "kubectl_manifest" resource which repeatedly updates the yaml file after each terraform apply run.
Hi, I created a cluster with RKE and registered it with Rancher like this:
rancher.tf
data.tf
inputs.tf
providers.tf
terrafrom.tfvars
When I run Terrorform Apply for the first time, the cluster becomes active on Rancher UI.
Then, the next time I run Terrorform Apply, the Rancher agent gets disconnected from the cluster on the Rancher UI.
terraform apply output
And updates the cattle-cluster-agent. Why does this happen, I am not able to understand. Is this a bug from Terraform's side? Is there any solution to this?
I am using the generic option to import the clusters on Rancher so that multiple clusters can be imported.
Is there any solution to this? Please help me.