https://pulumi.com logo
#kubernetes
Title
# kubernetes
g

gorgeous-pillow-13604

10/12/2023, 3:51 PM
I did a search, but I think it is such a noob question that no one has asked it before. I am following the getting started for the K8s on AWS. I have the pulumi up working and it spits out the kubeconfig as an output. How do I use that to say kubectl get pods? I tried below with no luck and it gives me an error of "file name too long"
Copy code
kubectl get pods --kubeconfig $(pulumi stack output kubeconfig)
d

dry-keyboard-94795

10/12/2023, 4:08 PM
Try with
<(pulumi...)
instead, so that the output is loaded into a file
b

billowy-army-68599

10/12/2023, 4:41 PM
Copy code
pulumi stack output kubeconfig > kubeconfig.json
export KUBECONFIG=kubeconfig.json
kubectl get pods