Master and Node Versions Default to Latest #32
Merged
+1
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is as opposed to letting GKE figure out the latest patch suffix. This strategy does not work for specifying node version - only masters. An explicit patch suffix is required for node version.
Latest, "...specifies the highest supported Kubernetes version currently available on GKE in the cluster's zone or region" 1. I've tested this in
us-west1
,us-west2
, andus-central1
and it's worked as suspected - all masters and nodes were launched with version 1.11.2-gke.18.An alternate approach would be to use the
google_container_engine_versions
data source. This would be useful if we had a need to target a specific minor or patch version as the default. I would argue that it's more appropriate for the projects that use this module to utilizegoogle_container_engine_versions
to satisfy project-specific needs.