sparse-intern-71089
08/13/2020, 2:57 PMwhite-balloon-205
narrow-jackal-57645
08/13/2020, 11:00 PM// Create a GKE cluster
const cluster = new gcp.container.Cluster("my_clusterName", {
name: "_clusterName",
removeDefaultNodePool: true,
initialNodeCount: 1,
nodeLocations: "australia-southeast-1",
nodeConfig: {
machineType: "n1-standard-1",
oauthScopes: [
"<https://www.googleapis.com/auth/compute>",
"<https://www.googleapis.com/auth/devstorage.read_only>",
"<https://www.googleapis.com/auth/logging.write>",
"<https://www.googleapis.com/auth/monitoring>"
]
}
});
const nodePool = new gcp.container.NodePool(`my_node_pool`, {
cluster: cluster.id,
initialNodeCount: 1,
location: cluster.location,
nodeConfig: {
oauthScopes: [
"<https://www.googleapis.com/auth/compute>",
"<https://www.googleapis.com/auth/devstorage.read_only>",
"<https://www.googleapis.com/auth/logging.write>",
"<https://www.googleapis.com/auth/monitoring>"
]
},
management: {
autoRepair: true,
autoUpgrade: true,
},
upgradeSettings: {
maxSurge: 5,
maxUnavailable: 2
},
autoscaling: {
minNodeCount: 1,
maxNodeCount: 10
}
});
white-balloon-205
@pulumi/gcp
versions where the upstream provider changed the ID format. I think you could likely pulumi refresh
first to pick up the new ID format. The underlying problem is - I suspect - that the ID of the cluster that the upstream provider used used to be "/projects/totoro-dev/locations/australia-southeast1/clusters/totoro-demo" and is now "totoro-demo". Because the old id is still getting picked up - the new provider is getting confused by this.narrow-jackal-57645
08/14/2020, 2:33 PMcluster
attribute takes the name
instead of id
. So for my case, I use cluster.name
to resolve this issuewhite-balloon-205