Skip to content

kubernetes url change localhost??Β #2120

@chenxin-coder

Description

@chenxin-coder

kubectl version
Client Version: v1.33.0
Kustomize Version: v5.6.0
Server Version: v1.33.5-eks-3025e55

terraformer-kubernetes version
Terraformer v0.8.30

terraform version
Terraform v1.14.1
on windows_amd64

  • provider registry.terraform.io/hashicorp/kubernetes v2.38.0

when terraformer-kubernetes import kubernetes --resources=deployments --filter="namespace=sit"

2025-12-04T18:16:08.380+0800 [ERROR] plugin.terraform-provider-kubernetes_v2.38.0_x5.exe: Response contains error diagnostic: tf_rpc=ReadResource @caller=github.com/hashicorp/[email protected]/tfprotov5/internal/diag/diagnostics.go:58 @module=sdk.proto diagnostic_severity=ERROR diagnostic_summary="Get "http://localhost/apis/apps/v1/namespaces/sit/deployments/xxx\": dial tcp [::1]:80: connectex: No connection could be made because the target machine actively refused it." tf_provider_addr=registry.terraform.io/hashicorp/kubernetes tf_req_id=9d9cf3b9-a019-55f9-c1cb-7f6269935ce8 diagnostic_detail="" tf_proto_version=5.9 tf_resource_type=kubernetes_deployment timestamp="2025-12-04T18:16:08.380+0800"

why localhost?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions