sg-aks-workshop icon indicating copy to clipboard operation
sg-aks-workshop copied to clipboard

flux cannot be deployed - No connection could be made because the target machine actively refused it.

Open YSDimov opened this issue 5 years ago • 1 comments

kubernetes_namespace.flux: Creating...

Error: Post http://localhost/api/v1/namespaces: dial tcp 127.0.0.1:80: connectex: No connection could be made because the target machine actively refused it.

on flux.tf line 13, in resource "kubernetes_namespace" "flux": 13: resource "kubernetes_namespace" "flux" {

YSDimov avatar Jan 22 '21 10:01 YSDimov

This is due to AKS infrastructure state being in the same state file as Kubernetes state. Terraform has a non-deterministic behavior when providers have dependencies.

Best-practice is to separate the two into workspaces.

aidacloud avatar Aug 08 '22 00:08 aidacloud