Skip to content

Kubernetes Provider tries to reach localhost:80/api when targeting azurerm resources #405

@damnedOperator

Description

@damnedOperator

Terraform Version

0.11.13 Azure DevOps Extension

Affected Resource(s)

  • kubernetes_role_binding.ingressRoleBinding
  • kubernetes_namespace.environment
  • kubernetes_role.ingressRole
    etc. Every kubernetes Resource i try to use.

Terraform Configuration Files

https://ptv2box.ptvgroup.com/index.php/s/OBZRxYIp0k9qIuT

Debug Output

https://gist.github.com/damnedOperator/f7aa5fcffb49ed12cd24d5fa58f362c1

Expected Behavior

Terraform apply should end without errors and the kubernetes Provider should configure the Kubernetes cluster created on AKS

Actual Behavior

Terraform apply fails and provider tries to connect to either localhost or ".visualstudio.com"

Steps to Reproduce

  1. Setup an Azure DevOps Server 2019
  2. Setup a Linux Agent
  3. Configure your pipeline with everything

Important Factoids

The terraform Job is running in a release pipeline on Azure DevOps Server 2019. What makes me wonder is that the azurerm provider does not go into error.
We deploy the tfstate file from source control so TF does always know how its state is.

References

#382 reports similar behaviour, but in our case, the provider is configured with attributes from the AKS creation

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