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 digitaloceanNo matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by