broad-boots-45639
12/23/2019, 6:34 PMunable to load schema information from the API server: the server has asked for the client to provide credentials
From what I’ve read Pulumi auths to k8s using either ~/.kube/config or $KUBECONFIG. Given that I have a recently updated kube config and can connect to my cluster I don’t understand why Pulumi is failing. I’m thinking the issue could be with the way I export the provider in the project that creates the basic cluster:
export const kubeconfig = cluster.kubeConfigs[0].rawConfig
const provider = new kubernetes.Provider(project_name, { kubeconfig })
I removed the cluster bootstrapping (container registry login stuff, etc) that was dependent upon the provider and ran pulumi update -v 5 --debug
. I hoped this would update the kubeconfig being used by the other projects that deploy my apps. All I got from the attempted update was a vague error and an outputted kube config file:
error: an unhandled error occurred: Program exited with non-zero exit code: -1
What is the recommended way to deal with the k8s digitalocean certificate rotation, both from managing the base cluster and for the applications that will deploy to it? I took a look at the Terraform documentation here but am not sure how to translate this to Pulumi:
https://www.terraform.io/docs/providers/do/r/kubernetes_cluster.html#kubernetes-terraform-provider-example
I’ve been stuck on this for a while, any assistance would be greatly appreciated :-)gentle-diamond-70147
12/23/2019, 6:52 PMbroad-boots-45639
12/23/2019, 7:52 PMbroad-dog-22463
12/24/2019, 6:42 PMbroad-boots-45639
12/25/2019, 5:36 PM