Closed patrickmslatteryvt closed 4 years ago
Google Support suggested this fix to me and it did indeed work:
You need to add the current supported cluster version of the release channel in the initialClusterVersion
field.
You can get this value from:
https://cloud.google.com/kubernetes-engine/docs/release-notes-regular
or from the error message that Deployment Manager throws.
+ initialClusterVersion: "1.14.8-gke.33"
releaseChannel:
channel: REGULAR
It's an ugly hack but it works...
One more gotcha, non-default nodespools need the initial cluster version specified also:
- name: nodepool2
+ version: "GKE_VERSION"
initialNodeCount: MIN_NODE_COUNT
Replace GKE_VERSION
with the same version as the initialClusterVersion
So I cloned the latest changes the the GKE template that added the
releaseChannel
setting from: https://github.com/GoogleCloudPlatform/cloud-foundation-toolkit/pull/539But it does not seem to work at all.
To troubleshoot it I created a very minimal DM config based on: https://raw.githubusercontent.com/GoogleCloudPlatform/cloud-foundation-toolkit/master/dm/templates/gke/examples/gke_regional_private.yaml but using our lab projects network settings:
If I deploy it as above, it creates a cluster, that cluster creation eventually times out due a network issue but it does actually create the 3 cluster nodes. (That network issue is unrelated and I'm not going to chase it down for this test, the core thing is the cluster is actually created)
But if I enable the commented out
releaseChannel
lines above I get this error immediately when I try to deploy:I note that there is a similar issue logged in the TerraForm GKE module at: https://github.com/terraform-google-modules/terraform-google-kubernetes-engine/issues/383
Any ideas?
Note: This used to work up until mid December 2019 or so, I had written my own version of the patch for using
releaseChannel
with Deployment Manager some time back and it worked perfectly. Then one day it just suddenly stopped working... I can only surmise a change in the API that isn't obvious to me.