ancient-rose-25146
06/13/2022, 7:45 PMerror sending request: googleapi: Error 400: Must provide an update.
Here is the change:
Initial:
const cluster = new gcpNative.container.v1.Cluster(clusterNameUS, {
name: clusterNameUS + `-${environment}`,
project: project,
location: "us-west2-b",
releaseChannel: {
channel: "REGULAR",
},
initialClusterVersion: "1.21.9-gke.1002",
workloadIdentityConfig: {
workloadPool: workloadPool,
},
networkConfig: {},
ipAllocationPolicy: {
useIpAliases: true,
},
nodePools: [
{
config: nodeConfig,
initialNodeCount: 3,
name: `${environment}-us`,
autoscaling: {
enabled: true,
maxNodeCount: 5,
minNodeCount: 3,
},
},
{
config: gpuNodeConfig,
initialNodeCount: 1,
name: `${environment}-us-gpu`,
autoscaling: {
enabled: true,
maxNodeCount: 5,
minNodeCount: 1,
},
},
],
});
updated:
const cluster = new gcpNative.container.v1.Cluster(clusterNameUS, {
name: clusterNameUS + `-${environment}`,
project: project,
location: "us-west2-b",
releaseChannel: {
channel: "REGULAR",
},
initialClusterVersion: "1.21.9-gke.1002",
workloadIdentityConfig: {
workloadPool: workloadPool,
},
networkConfig: {},
ipAllocationPolicy: {
useIpAliases: true,
},
nodePools: [
{
config: nodeConfig,
initialNodeCount: 3,
name: `${environment}-us`,
autoscaling: {
enabled: true,
maxNodeCount: 5,
minNodeCount: 3,
},
},
{
config: gpuNodeConfig,
initialNodeCount: 1,
name: `${environment}-us-gpu`,
autoscaling: {
enabled: true,
maxNodeCount: 5,
minNodeCount: 1,
},
},
{
config: a100NodeConfig,
initialNodeCount: 1,
name: `${environment}-us-a100`,
autoscaling: {
enabled: true,
maxNodeCount: 5,
minNodeCount: 1,
},
},
],
});
The only difference is the addition of the a100 pool.great-queen-39697
06/13/2022, 9:40 PMancient-rose-25146
06/13/2022, 9:43 PMpulumi up
on a completely new stack it would let me do that as well. The problem was only from updating a currently existing cluster via pulumi.great-queen-39697
06/13/2022, 9:44 PMancient-rose-25146
06/13/2022, 9:58 PMgreat-queen-39697
06/13/2022, 9:58 PM