FEATURES PRICING ABOUT DOCS LOGIN

google_container_cluster

!> Warning: Due to limitations of the API, all arguments except node_version are non-updateable. Changing any will cause recreation of the whole cluster!

Example usage

resource "google_container_cluster" "primary" {
  name = "marcellus-wallace"
  zone = "us-central1-a"
  initial_node_count = 3

  master_auth {
    username = "mr.yoda"
    password = "adoy.rm"
  }

  node_config {
    oauth_scopes = [
      "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"
    ]
  }
}

Argument Reference


Master Auth supports the following arguments:

Node Config supports the following arguments:

Addons Config supports the following addons:

This example addons_config disables both addons:

addons_config {
  http_load_balancing { 
    disabled = true
  }
  horizontal_pod_autoscaling {
    disabled = true
  }
}

Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:


See the source of this document at Terraform.io

REQUEST A DEMO