Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to createa a GKE cluster - Google Cloud #16981

Closed
koalalorenzo opened this issue Dec 23, 2017 · 4 comments
Closed

Unable to createa a GKE cluster - Google Cloud #16981

koalalorenzo opened this issue Dec 23, 2017 · 4 comments

Comments

@koalalorenzo
Copy link

koalalorenzo commented Dec 23, 2017

Terraform Version

Terraform v0.11.1
+ provider.google v1.2.0
+ provider.random v1.0.0

Terraform Configuration Files

resource "google_container_cluster" "the_cluster" {
  name               = "the-cluster-${random_string.the_cluster_id.result}"
  zone               = "europe-west1-c"
  min_master_version = "1.8.4-gke.1"
  initial_node_count = 1

  logging_service    = "none"
  monitoring_service = "none"

  maintenance_policy {
    daily_maintenance_window {
      start_time = "03:00"
    }
  }

  addons_config {
    http_load_balancing {
      disabled = true
    }
  }

  node_config {
    disk_size_gb = "32"
    image_type   = "COS"
    machine_type = "n1-standard-2"
    preemptible  = false

    labels {
      pool    = "default-pool"
      cluster = "the-cluster"
    }
  }

  lifecycle {
    create_before_destroy = true
  }
}

Note: The error happens also when creating a google_container_node_pool

Debug Output

Crash Output

Expected Behavior

The cluster is created within 15-30 minutes

Actual Behavior

Error from Google API: All cluster resources were brought up, but the cluster API is reporting that only 0 nodes out of 1 have registered. Cluster may be unhealthy.

Steps to Reproduce

  1. terraform init
  2. terraform apply

Important Factoids

Running on the latest version of macOS (High Sierra)

References

@koalalorenzo
Copy link
Author

The error reported is:

* google_container_cluster.the_cluster: Error waiting for creating GKE cluster: All cluster resources were brought up, but the cluster API is reporting that only 0 nodes out of 1 have registered. Cluster may be unhealthy.

@tombuildsstuff
Copy link
Contributor

hey @koalalorenzo

Thanks for opening this issue

Since you've already opened an issue about this on the main Google Provider Repository - rather than migrate this issue over there I'm going to close this issue in favour of that one; where this can be looked into.

Thanks!

@empikls
Copy link

empikls commented Aug 19, 2019

Hi !

I have the same problem :

Error: Error waiting for creating GKE cluster: All cluster resources were brought up, but the cluster API is reporting that: only 0 nodes out of 1 have registered; this is likely due to Nodes failing to start correctly; try re-creating the cluster or contact support if that doesn't work.

@ghost
Copy link

ghost commented Aug 20, 2019

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Aug 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants