<p>The supported versions are listed here:</p>

<p><a href="https://cloud.google.com/container-engine/supported-versions" rel="noreferrer">https://cloud.google.com/container-engine/supported-versions</a></p>

<p>but I'm wondering if there is a way to programatically get this list (besides scraping that page, I guess) via <code>gcloud</code> or some similar tool?</p>

<p>I find that hard-coding a single version breaks often because Google keeps updating the supported versions. At the same time, I /would/ like to specify at least the large version (e.g., 1.7.x) because it appears that 1.8.x introduces some breaking changes, for example.</p>

<p>The gcloud "get-server-config" will get you the data you want. Specifying the "--format" option can also return it in a way that's easy to parse:</p>

<pre><code>gcloud container get-server-config --zone=us-central1-f --format=json
</code></pre>

<p>If you wish to control when updates happen, the maintenance window option may also help you control when you want them to occur. <a href="https://cloud.google.com/container-engine/docs/maintenance-window" rel="noreferrer">https://cloud.google.com/container-engine/docs/maintenance-window</a></p>
