Skip to content
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

Nodepool upgrades on GKE Terraform apply #3612

Merged
merged 2 commits into from
Jan 26, 2024

Conversation

markmandel
Copy link
Member

What type of PR is this?

Uncomment only one /kind <> line, press enter to put that in a new line, and remove leading whitespace from that line:

/kind breaking

/kind bug

/kind cleanup
/kind documentation
/kind feature
/kind hotfix
/kind release

What this PR does / Why we need it:

Per the docs:
"...node pools defined inside a cluster can't be changed (or added/removed) after cluster creation without deleting and recreating the entire cluster."

Which is not great - since you can end up with out-of-sync K8s versions between the control plane and nodes, an inability to change nodepool sizes and just a general lack of flexibility.

Moving the node pool definitions out of the cluster definition solves this issue!

Which issue(s) this PR fixes:

Closes #3339

Special notes for your reviewer:

This is the same terraform we use for our dev clusters on GKE.

Per the docs:
"...node pools defined inside a cluster can't be changed (or
added/removed) after cluster creation without deleting and recreating
the entire cluster."

Which is not great - since you can end up with out-of-sync K8s versions
between the control plane and nodes, an inability to change nodepool
sizes and just a general lack of flexibility.

Moving the node pool definitions out of the cluster definition solves
this issue!

Closes googleforgames#3339
@markmandel markmandel added the area/operations Installation, updating, metrics etc label Jan 25, 2024
@github-actions github-actions bot added kind/bug These are bugs. size/M labels Jan 25, 2024
@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: d0f59444-e536-49fd-ac88-1762c6b2d450

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

  • git fetch https://github.com/googleforgames/agones.git pull/3612/head:pr_3612 && git checkout pr_3612
  • helm install agones ./install/helm/agones --namespace agones-system --set agones.image.registry=us-docker.pkg.dev/agones-images/ci --set agones.image.tag=1.38.0-dev-0142a90-amd64

@markmandel markmandel added the kind/breaking Breaking change label Jan 26, 2024
@markmandel
Copy link
Member Author

I dropped a breaking on this as it changes the structure of the Terraform, so we should call this out in the release notes.

I don't expect it to be an issue since the older version wouldn't let you update nodes anyway, but better to be sure.

@gongmax gongmax enabled auto-merge (squash) January 26, 2024 03:54
@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 00988c80-ec80-44d5-92d3-68ef938e7131

To get permission to view the Cloud Build view, join the agones-discuss Google Group.

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: c7006833-e48f-4c0c-bb22-9707f114e436

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

  • git fetch https://github.com/googleforgames/agones.git pull/3612/head:pr_3612 && git checkout pr_3612
  • helm install agones ./install/helm/agones --namespace agones-system --set agones.image.registry=us-docker.pkg.dev/agones-images/ci --set agones.image.tag=1.38.0-dev-5e4121a-amd64

@gongmax gongmax merged commit 26ed311 into googleforgames:main Jan 26, 2024
4 checks passed
@markmandel markmandel deleted the tf/update-gke branch January 26, 2024 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/operations Installation, updating, metrics etc kind/breaking Breaking change kind/bug These are bugs. size/M
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[GKE Standard/Terraform] Cluster nodes aren't upgrading with the control plane
3 participants