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

adorable-sugar-92867

01/14/2020, 11:16 AM
Q: before creating a cluster a provider obviously isn’t valid and until
doctl kubernetes cluster kubeconfig save $CLUSTER_NAME
has been run (manually) instructions such as
new kubernetes.yaml.ConfigFile("cert-manager", {file: ...}
seem to fail (error: unable to load Kubernetes client configuration from kubeconfig file: invalid configuration: no configuration has been provided). Is there a recommended way around that?
✔️ 1
l

limited-rainbow-51650

01/14/2020, 11:17 AM
I usually create the cluster in project A and use the cluster in project B. So not in the same project.
e

elegant-dress-88912

01/14/2020, 11:32 AM
@adorable-sugar-92867 usually you construct kubeconfig from cluster resource and create new k8s provider
a

adorable-sugar-92867

01/14/2020, 11:34 AM
yes, Seem I forgot to add a provider as third param to those instructions… After doing that Pulumi is able to perform it’s magic 👍