sparse-intern-71089
12/17/2018, 5:44 PMabundant-airplane-93796
12/17/2018, 6:05 PMfaint-motherboard-95438
12/17/2018, 6:09 PMfaint-motherboard-95438
12/17/2018, 6:10 PMgcp
package wrapper of the terraform provider ?abundant-airplane-93796
12/17/2018, 6:12 PMfaint-motherboard-95438
12/17/2018, 6:17 PMabundant-airplane-93796
12/17/2018, 6:21 PMabundant-airplane-93796
12/17/2018, 6:21 PMfaint-motherboard-95438
12/17/2018, 6:25 PMCluster
resource (in pulumi terms) with all related configurations cluster and nodepool in it. Honestly I’m still new to this, so not sure if what I’m doing is the right way to do it. From what you are saying I understand I could create an “empty” cluster and attach nodepools to it later on ? Which could maybe be more flexible and avoid the error I’m encountering right now ?abundant-airplane-93796
12/17/2018, 6:26 PMabundant-airplane-93796
12/17/2018, 6:27 PMfaint-motherboard-95438
12/17/2018, 6:33 PMfaint-motherboard-95438
12/17/2018, 6:33 PMorange-tailor-85423
12/17/2018, 10:51 PMglamorous-printer-66548
12/18/2018, 12:57 AMfaint-motherboard-95438
12/18/2018, 9:05 AMfaint-motherboard-95438
12/18/2018, 9:35 AMfaint-motherboard-95438
12/18/2018, 9:46 AMfaint-motherboard-95438
12/19/2018, 2:14 PMNodePool
component from the main Cluster
one does not work. If I try to add/change/remove a label, which is the simplest thing we can do to a node I guess, I get a 409 from google apis.
error: Plan apply failed: error creating NodePool: googleapi: Error 409: Already exists: projects/REDACTED/zones/REDACTED/clusters/REDACTED/nodePools/test-pool., alreadyExists
Why is it trying to recreate it while it only has to change its labels ?faint-motherboard-95438
12/19/2018, 2:18 PMglamorous-printer-66548
12/19/2018, 2:19 PMname
for your nodepool this strategy is running into a conflict. The suggested resolution for now is not to specify a name
in the nodepool resource, but instead let pulumi auto-generate a name based on the pulumi resource id (for nodepools pulumi will generate a name using <resource_id>-<some_random_suffix>
). This way pulumi is able to create a new nodepool before deleting the old one in the case of changes which require a recreation (e.g. changing nodepool labels).faint-motherboard-95438
12/19/2018, 2:26 PMglamorous-printer-66548
12/19/2018, 2:33 PMglamorous-printer-66548
12/19/2018, 2:35 PMglamorous-printer-66548
12/19/2018, 2:38 PMfaint-motherboard-95438
12/19/2018, 2:39 PMfaint-motherboard-95438
12/26/2018, 5:37 PMNodePool
without a name
property so pulumi should generate one by itself.
When I try to change something in a pool (the nodeCount
for instance) now I get this :
gcp:container:Cluster (REDACTED):
error: Plan apply failed: 1 error occurred:
* updating urn:pulumi:REDACTED::REDACTED::REDACTED:Cluster$gcp:container/cluster:Cluster::REDACTED: googleapi: Error 400: Node_pool_id must be specified., badRequest
I don’t know what is wrong, it should have its Node_pool_id
in the state somewhere from the previous pulumi up
, shouldn’t it ?glamorous-printer-66548
12/26/2018, 5:40 PMfaint-motherboard-95438
12/26/2018, 10:35 PMfaint-motherboard-95438
12/27/2018, 4:36 PM