Skip to content

Use latest Kubernetes versions for GCP clusters#3182

Merged
Adam-D-Lewis merged 2 commits intomainfrom
always-use-latest-version
Nov 11, 2025
Merged

Use latest Kubernetes versions for GCP clusters#3182
Adam-D-Lewis merged 2 commits intomainfrom
always-use-latest-version

Conversation

@Adam-D-Lewis
Copy link
Member

@Adam-D-Lewis Adam-D-Lewis commented Nov 6, 2025

Whenever you go to deploy Nebari again and you've specified a shortened version of the Kubernetes version e.g. "1.31", there's a really painful wait time as all the node groups are switched out. To a lesser extent, some auto applied labels are also deleted and is annoying to wait for. This PR solves those issues.

This PR:

  • Queries GCP API for latest available Kubernetes versions using version_prefix instead of static version
  • Updates both master and node pool versions to use latest available versions dynamically
  • Adds lifecycle rule to ignore auto-added GCP resource labels on node pools

This ensures GCP clusters always use the most recent patch version available for the specified Kubernetes minor version.

@Adam-D-Lewis Adam-D-Lewis requested a review from a team as a code owner November 6, 2025 21:24
@Adam-D-Lewis Adam-D-Lewis requested review from dcmcand and viniciusdc and removed request for a team November 6, 2025 21:24
Copy link
Contributor

@dcmcand dcmcand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀 thanks for this @Adam-D-Lewis

@Adam-D-Lewis Adam-D-Lewis merged commit 6072e52 into main Nov 11, 2025
20 of 25 checks passed
@Adam-D-Lewis Adam-D-Lewis deleted the always-use-latest-version branch November 11, 2025 16:20
@github-project-automation github-project-automation bot moved this from New 🚦 to Done 💪🏾 in 🪴 Nebari Project Management Nov 11, 2025
@viniciusdc viniciusdc added this to the 2026.02.1 milestone Jan 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done 💪🏾

Development

Successfully merging this pull request may close these issues.

3 participants