damp-jelly-5493
12/16/2019, 8:12 AMconst k8s = new digitalocean.KubernetesCluster('Configure k8s', stackConfig.k8s);
const k8sConfig = k8s.kubeConfigs[0].rawConfig;
const k8sProvider = new kubernetes.Provider('Get k8s provider', {
kubeconfig: k8sConfig,
});
the k8sProvider
then is set to provider
options any time i make an additional k8s call, eg
const helmServiceAccount = new kubernetes.core.v1.ServiceAccount(
'Helm RBAC service account',
{
apiVersion: 'v1',
kind: 'ServiceAccount',
metadata: {
name: 'tiller',
namespace: 'kube-system',
},
},
{
provider: k8sProvider,
},
);
as i said, this all works fine for the first 7 days then breaks because the kubeconfig has expired within digitalocean