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

best-appointment-51810

07/01/2022, 6:36 PM
and where I try to use the kubctl on the provider:
Copy code
const lkeProvider = new k8s.Provider("date", {
    kubeconfig: procCluster.kubeconfig
})
b

billowy-army-68599

07/01/2022, 6:51 PM
export the Kubeconfig and validate it's correct
b

best-appointment-51810

07/01/2022, 7:22 PM
oh I see it and and it’s correct but it’s base 64 encoded
I decoded it and I could see the yaml
Do i need to do anything to the output to convert it?
yup that did it
did this and it works
Copy code
const lkeProvider = new k8s.Provider("date", {
    kubeconfig: procCluster.kubeconfig.apply((t)  => {
        const bufferObj = Buffer.from(t, "base64");
        return bufferObj.toString("utf8");
    })
})
6 Views