-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to bump cluster version while on the channel #675
Comments
@redbaron there is a catch: |
We just can't use both But the question for the terraform module is still valid: we may want to restrict definitions of the Before the migration we can try to handle it here or leave as is as API error is self descriptive enough. Just confirmed that with following tests: Works as expected: Then on v11.1.0 I tried to play with the
The same situation is reproducible on
So we either use the |
@ivankorn , I was able to update versions on both master and nodes via console, and I presume it is possible to so via gcloud as well, without disabling node autoupgrade or changing release channel. It contradicts your findings, does it mean that TF provider imposes extra limitations, which are not present in GCP API? |
@redbaron looks like GCP API doc explicitly says that the channel clusters are not supposed to be manually updated. So you kind off should never touch it as far as I understand. Google does the upgrade job under the hood. If the web interface allows you doing the upgrade on channel-enabled cluster - then it's indeed a little confusing and we may want to ask Google engineers to comment on that when they get a chance @aaron-lane @morgante @redbaron have you observed the automatic updates on your channel-enabled clusters yet, btw? I mean it should work, what was your motivation for force-upgrade? At TF side we can only restrict the variables definitions as I proposed in #677 so users get clear TF error on attempt to use |
It all depends on timing. At the time of R29.1 release cluster was on default version, but another version was available as an upgrade. I can see that @ivankorn , didn't test explicitly the case where channel is set, auto upgrade is true and |
I'm of the opinion that we explicitly should discourage manually setting a version when using release channels. The intent of release channels is to allow Google to manage the cluster version on your behalf (with a particular cadence) and accepting a version undermines that. |
@morgante , in general I'd agree with you, but like was the case with R29.1, new version with security or bug fix important to you can be added to the channel without making it a mandatory upgrade, just an option to upgrade to. There should be a way to get it without going to the console, don't you think? |
@ivankorn , @bharathkkb , this situation repeated again with another cluster. It was created using this TF module in Regular channel with at the time the latest version Console offers me the upgrade, but TF module ignores |
Just to be clear, is your desire to upgrade prior to when GKE does it on your behalf? If you want this level of control, I'm wondering why use release channels at all? If you want to be in charge of upgrading your clusters yourself, I'm not sure release channels are really suited to you. |
One of the purpose of the channel is to limit versions you can use to ones matching channel policy: Rapid, Regular, Stable. Additionally it does mandatory upgrades. What I am asking for is to be able to perform optional upgrades to the new versions available in the channel. It should be possible by passing |
Hi, actually the official GKE documentation for channel clusters states the following :
So they recommend to manually upgrade channel clusters if needed for whatever reason (and I think that applying a security fix ASAP is a valid one). But of course if the google API doesn't allow the use of channel and min version together we're screwed ! |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days |
Still relevant and needs to be addressed. |
Not having this feature costs me an hour of extra wait time when I'm testing cluster creation. If this is still relevant to anyone, please comment/vote on the issue I created at https://issuetracker.google.com/issues/235121270, as it may affect more than just the Terraform module as pointed out by @tzoratto. |
We recently bumped into this issue while using the If you want to disable
This will ensure that it doesn’t use the latest k8s version and retains your existing version
This works on the latest version of the terraform module. Hopefully this helps |
I am using
beta-private-cluster
module version 11.1.0 and configured clusters withrelease_channel = "REGULAR"
. New security bulletin ( https://cloud.google.com/kubernetes-engine/docs/security-bulletins#gcp-2020-012 ) recommends updating cluster version.I tried to set
kubernetes_version
variable, but it seems to be ignored by the module when release channel is set, so I am forced to use console/gcloud upgrade to upgrade cluster version and can't use the TF module for this.Shouldn't it pass
kubernetes_version
tomin_master_version
even if release channel is set?The text was updated successfully, but these errors were encountered: