bitter-dentist-28132
06/05/2020, 2:23 AMconfigured Kubernetes cluster is unreachable: unable to load schema information from the API server: the server has asked for the client to provide credentials
. any idea why this might be the case? i'm explicitly getting the kubeconfig and providing it as the provider
, so it's not like some sort of ambient credential problem.creamy-potato-29402
06/05/2020, 2:35 AMbitter-dentist-28132
06/05/2020, 2:36 AMcluster.kubeConfig
try {
// first try to generate the kubeconfig from a pre-existing cluster.
// this is done to workaround the 7-day expiry of kubeconfigs from DO.
kubeConfig = pulumi.secret(digitalocean.getKubernetesCluster(
{name: `infrastructure`}).kubeConfigs[0].rawConfig);
} catch (e) {
// if we can't do that, simply grab the kubeconfig from the cluster we
// just created
kubeConfig = pulumi.secret(cluster.kubeConfigs[0].rawConfig);
}
creamy-potato-29402
06/05/2020, 3:07 AMbitter-dentist-28132
06/05/2020, 3:18 AMkubectl
-- worked fine.up
just the provider to bump the kubeconfigrefresh
was using the stack's stored provider, which of course no longer works after 7 days because DO uses expiring certs for auth... sighcreamy-potato-29402
06/05/2020, 3:43 AM