Closed Annavar-satish closed 11 months ago
This is expected TF behavior, TF tries to refresh data resources for every operation and since the Talos cluster was not created the refreshing of the kubeconfig resource would fail. In this case pass -refresh=false
to the TF destroy command.
thanks for helping me quickly @frezbo
@frezbo The error was not gone. even when I use TF apply freshly It giving me the same error the nodes are being created and I can get out put for talosconfig but the kubeconfig was not created . I have used -refresh=false
for TF apply too didn't solve .
Planning failed. Terraform encountered an error while generating this plan.
╷
│ Error: failed to retrieve kubeconfig
│
│ with data.talos_cluster_kubeconfig.this,
│ on main.tf line 208, in data "talos_cluster_kubeconfig" "this":
│ 208: data "talos_cluster_kubeconfig" "this" {
│
│ empty retryable error received. This is a bug with the Terraform provider and should be reported as a GitHub issue in the provider repository.
Closing this issue for now, since we use the TF provider code with Talos e2e-aws tests. please re-open if issue still persists.
Bug Report
Description
I was using example terraform aws modules to create a cluster with
t2.micro
and faced a error below errorand tried to destory and reapply the plan while destroing got this error
Logs
Environment
AWS
terraform
Talos version: [
talosctl version --nodes <problematic nodes>
]Kubernetes version: [
kubectl version --short
]Platform: