question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to create regional cluster

See original GitHub issue

@pulumi/gcp@0.18.2

export const k8sCluster = new gcp.container.Cluster('gke-cluster', {
  initialNodeCount: 1,
  nodeVersion: 'latest',
  minMasterVersion: 'latest',
  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',
    ],
  },

  // regional cluster
  location: 'us-central1',
  nodeLocations: ['us-central1-f', 'us-central1-b'],
})
  gcp:container:Cluster (gke-cluster):
    error: gcp:container/cluster:Cluster resource 'gke-cluster' has a problem: : invalid or unknown key: location
    error: gcp:container/cluster:Cluster resource 'gke-cluster' has a problem: : invalid or unknown key: node_locations

This should be possible based on #119

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:15 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
rosskevincommented, Apr 3, 2019

Reopening because I am unable to workaround the plugin versioning.

After a rebuild with initial yarn, the plugins are confirmed good:

~/p/advisorIntake ❯❯❯ pulumi plugin ls
NAME        KIND      VERSION  SIZE   INSTALLED       LAST USED
gcp         resource  0.18.2   64 MB  54 seconds ago  now
kubernetes  resource  0.22.0   45 MB  54 seconds ago  now
random      resource  0.5.1    27 MB  54 seconds ago  now

Then I ran pulumi up on a stack with the following dependencies:

"@pulumi/gcp": "^0.18.2",
"@pulumi/kubernetes": "^0.22.0",
"@pulumi/pulumi": "^0.17.4",
"@pulumi/random": "^0.5.1"

I then notice that pulumi up installed the older gcp@0.18.0 plugin:

pulumi plugin ls
NAME        KIND      VERSION  SIZE   INSTALLED       LAST USED
gcp         resource  0.18.2   64 MB  1 minute ago    now
gcp         resource  0.18.0   64 MB  13 seconds ago  7 seconds ago
kubernetes  resource  0.22.0   45 MB  1 minute ago    now
random      resource  0.5.1    27 MB  1 minute ago    now

With the result:

error: gcp:container/cluster:Cluster resource 'production' has a problem: : invalid or unknown key: location

What is bizarre is this originally worked briefly (a few hours), then stopped working. Now I cannot use the code written for the regional cluster even after clearing plugins/rebuilding node_modules.

0reactions
rosskevincommented, Dec 12, 2019

I was looking for an old issue I created and bumped into this one and saw it was open. I’m no longer having problems with regional clusters so I’m going to close this for now, until I bump into it again. https://github.com/pulumi/pulumi/issues/2576 is resolved so perhaps that was indeed the cause.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Creating a regional cluster | Google Kubernetes Engine (GKE)
The following instructions show you how to create a regional cluster with a node pool operating in a single zone within the region....
Read more >
Attempts to create a free cluster leads to a "Clusters cannot be ...
When you attempt to create a free cluster, you see a "Clusters cannot be created in this region without a Pay-As-You-Go account" error...
Read more >
Unable to create zonal GKE cluster with multi-zone node pool
This is an issue with multi-zone clusters, but I don't have an ETA on when it will be resolved. I would suggest changing...
Read more >
How do I resolve cluster creation errors in Amazon EKS?
You receive an error message stating that resource creation failed. Complete the steps in the Confirm that you have the correct IAM permissions ......
Read more >
Default cluster creation in GUI doesn't work because of quota ...
Addition: the setup has to use zonal and then any zone with at least 3 regions will fail. So another workaround is those...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found