Closed koushikgongireddy closed 1 month ago
@apeabody @morgante Can you please check once and see what's missing? or by default is that the nature?
Hi @koushikgongireddy - Thanks for reaching out!
I believe that with auto-upgrade the node pools are scheduled for upgrade based on criteria, not immediately upgraded. You can view/verify this schedule with gcloud container operations list
. More details can be found at: https://cloud.google.com/kubernetes-engine/docs/how-to/node-auto-upgrades
@apeabody So there is no way we can automatically upgrade the node pool as part of terraform after the control plane upgrade is done?
We just need to wait until GCP triggers the node upgrade? the problem here is we are not sure when they do it, it may takes 1 day or 2 days or 1 week.
Can you let us know if there is any alternate way to achieve it?
Hi @koushikgongireddy - Control planes are compatible with nodes up to two minor versions older than the control plane[1], and node auto-upgrades ensure that your cluster's control plane and node version remain in in compliance during the lifecycle.
However, should you wish to manually configure the minimum node pool version, it can be done using terraform-google-kubernetes-engine
module's min_master_version
parameter or the google_container_node_pool
resource's version
parameter. However these will likely result in replacement rather than an upgrade, so I would suggest using gcloud
[2], or the console
[2] to trigger node pool upgrades.
With Auto upgrade - False, we have more control over node pool upgrades from TF instead of giving control over to GCP.
Thanks for the help
TL;DR
Unable to upgrade node pool as part of control plane upgrade
Expected behavior
When we perform control plane upgrade the node upgrade should also taken care after the control plane is upgraded
Observed behavior
Only control plane is getting upgraded and not node pool, its getting upgrades after 2-3 days and not right away
Terraform Configuration
Terraform Version
Additional information
No response