sparse-intern-71089
12/13/2019, 6:53 PMgentle-diamond-70147
12/13/2019, 10:46 PMprovider) as the provider to your digitalocean.KubernetesNodePool. This may be causing the panic - though it shouldn't be panicking, it should give you an error message.
So you can remove that part from the node pool arguments. Also, you don't need the explicit dependsOn, because you've already specified the dependency to clusterId: cluster.id. It won't cause a problem, it's just superfluous.gentle-diamond-70147
12/13/2019, 10:47 PMimport * as digitalocean from "@pulumi/digitalocean";
const projectName = "demo"
const cluster = new digitalocean.KubernetesCluster(`${projectName}`, {
region: digitalocean.Regions.NYC1,
version: "1.16.2-do.1",
nodePool: {
name: `${projectName}-default`,
size: digitalocean.DropletSlugs.DropletS2VCPU4GB,
autoScale: true,
minNodes: 1,
maxNodes: 2
},
});
export const clusterName = cluster.name;
const nodePool = new digitalocean.KubernetesNodePool(`${projectName}`, {
clusterId: cluster.id,
size: digitalocean.DropletSlugs.DropletS2VCPU4GB,
nodeCount: 1,
});
export const nodePoolName = nodePool.name;gentle-diamond-70147
12/13/2019, 10:48 PMbroad-boots-45639
12/26/2019, 6:25 PM