I am using `eks.Cluster` and I have error when `pu...
# typescript
I am using
and I have error when
pulumi up
from other stack. I configured output eks.cluster kubeconfig but it seems get previous kubeconfig output. I tried this, but it's not worked.
Copy code
this is works.
Copy code
pulumi stackoutput kubeconfig
but this is not work. (get previous kubeconfig)
Copy code
const eksStack = new pulumi.StackReference('organization/eks/{stack}');
const kubeconfig = eksStack.outputs.kubeconfig;
My pulumi CLI version is
, and my kubernetes module version
"@pulumi/kubernetes": "^3.21.2"
error message belows:
Copy code
pulumi preview
Previewing update (dev)

View Live: <https://app.pulumi.com/{masked}/argocd/dev/previews/ce0cceec-7ee2-4d75-aa7b-a7f9bfc1d2f0>

     Type                             Name        Plan       Info
     pulumi:pulumi:Stack              argocd-dev             1 error
 +   └─ kubernetes:core/v1:Namespace  argocd-ns   create

  pulumi:pulumi:Stack (argocd-dev):
    error: Error: invocation of kubernetes:helm:template returned an error: failed to generate YAML for specified Helm chart: could not get server version from Kubernetes: Get "<https://8D443680F22BAD26FCEA969006E150DC.yl4.ap-northeast-2.eks.amazonaws.com/version?timeout=32s>": dial tcp: lookup <http://8D443680F22BAD26FCEA969006E150DC.yl4.ap-northeast-2.eks.amazonaws.com|8D443680F22BAD26FCEA969006E150DC.yl4.ap-northeast-2.eks.amazonaws.com> on no such host
anyone have this issue?
Copy code
export const kubeconfig = cluster.kubeconfig;
const provider = new k8s.Provider('k8sProvider', { kubeconfig: kubeconfig });
I changed like this and its work
anyone have this trouble? if know anyone How can I deal with this? I think this situation point to previous eks endpoint, but I can't how change to latest eks endpoint.