Skip to content

Commit

Permalink
Add docs for #577.
Browse files Browse the repository at this point in the history
  • Loading branch information
paddycarver committed Oct 12, 2017
1 parent cc7cc83 commit 5c26039
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions website/docs/r/container_cluster.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ and
[API](https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters).

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

~> **Note:** All arguments including the username and password will be stored in the raw state as plain-text.
Expand Down Expand Up @@ -98,6 +98,12 @@ resource "google_container_cluster" "primary" {

* `node_pool` - (Optional) List of node pools associated with this cluster.

* `min_master_version` - (Optional) The minimum version of the master. GKE
can auto-update the master to new versions, so this does not guarantee the
current master version--use the read-only `master_version` field to obtain that.
Defaults to the default version set by GKE which is not necessarily the latest
version.

* `node_version` - (Optional) The Kubernetes version on the nodes. Also affects
the initial master version on cluster creation. Updates affect nodes only.
Defaults to the default version set by GKE which is not necessarily the latest
Expand Down Expand Up @@ -200,6 +206,10 @@ exported:
* `instance_group_urls` - List of instance group URLs which have been assigned
to the cluster

* `master_version` - The current version of the master in the cluster, which may
be different than the `min_master_version` set in the config, if the master
has been updated by GKE.

* `master_auth.client_certificate` - Base64 encoded public certificate
used by clients to authenticate to the cluster endpoint.

Expand All @@ -225,4 +235,4 @@ Container clusters can be imported using the `zone`, and `name`, e.g.

```
$ terraform import google_container_cluster.mycluster us-east1-a/my-cluster
```
```

0 comments on commit 5c26039

Please sign in to comment.