https://pulumi.com logo
#general
Title
# general
q

quiet-wolf-18467

10/25/2019, 2:28 PM
OK. Found some sort of problem 😕
Copy code
const kconfig = fs.readFileSync("../kubeconfig").toString();
const kubernetesProvider = new k8s.Provider("metrics", {
  kubeconfig: kconfig
});
Fails:
error: unable to load Kubernetes client configuration from kubeconfig file: invalid configuration: no configuration has been provide
But
kubectl get pods -n community --kubeconfig=./kubeconfig
works 😞