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

Enable image streaming everywhere by default #2756

Merged
merged 3 commits into from
Oct 6, 2022

Conversation

gongmax
Copy link
Collaborator

@gongmax gongmax commented Sep 30, 2022

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

What this PR does / Why we need it:

Update the installation guide for GKE, and Terraform scripts to default to enable image processing. Always enable image streaming for the "agones-system" and "agones-metrics" node pool. Enable image streaming for the "default" by default but user can change the setting.

Verified the change works by recreating my clusters and run kubectl get events --all-namespaces, saw the event log entries like Image ... is backed by image streaming for all the three node pools.

Which issue(s) this PR fixes:

Closes #2746

Special notes for your reviewer:

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 1420d94b-9132-43c9-b029-35d904ecf6a0

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/2756/head:pr_2756 && git checkout pr_2756
  • helm install agones ./install/helm/agones --namespace agones-system --set agones.image.tag=1.27.0-690d733-amd64

@gongmax gongmax marked this pull request as ready for review September 30, 2022 03:59
@@ -88,6 +88,7 @@ gcloud container clusters create [CLUSTER_NAME] --cluster-version={{% k8s-versio
--scopes=gke-default \
--num-nodes=4 \
--no-enable-autoupgrade \
--enable-image-streaming \
Copy link
Member

Choose a reason for hiding this comment

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

For changes to the website, we generally gate them so that they do not appear until the next release. Even though this doesn't require new features in Agones, I think it still makes sense to wait to publish this guidance until our next release (which reminds me that we should also recreate the e2e test cluster using your terraform scripts so that our testing starts to use this configuration as well).

https://agones.dev/site/docs/contribute/#within-a-page describes how to add the feature gate tags to the website pages.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks for the context. Fixed it in next commit.
Looks like the line {{% feature publishVersion="1.27.0" %}} and {{% /feature %}} introduce new lines automatically so I have to add them in the same line with the content to be hidden to avoid messing up the format. Verified via make site-server and make site-server ENV=RELEASE_VERSION=1.26.0 ARGS=

@@ -85,6 +85,7 @@ Configurable parameters:
- agones_version - the version of agones to install (an empty string, which is the default, is the latest version from the [Helm repository](https://agones.dev/chart/stable))
- machine_type - machine type for hosting game servers (default is "e2-standard-4")
- node_count - count of game server nodes for the default node pool (default is "4")
- enable_image_streaming - whether or not to enable image streaming for the `"default"` node pool (default is true)
Copy link
Member

Choose a reason for hiding this comment

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

This needs a feature gate as well.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Addressed in the second commit.

@roberthbailey
Copy link
Member

@markmandel - since you created #2746 would you like to take a review pass on this as well?

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 1775fb6a-7481-4113-b233-84f67a186844

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/2756/head:pr_2756 && git checkout pr_2756
  • helm install agones ./install/helm/agones --namespace agones-system --set agones.image.tag=1.27.0-4e61c34-amd64

Copy link
Collaborator

@markmandel markmandel left a comment

Choose a reason for hiding this comment

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

LGTM!

@google-oss-prow google-oss-prow bot removed the lgtm label Sep 30, 2022
@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: b28ec8b3-256f-4c10-a97a-a7c29111f43f

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/2756/head:pr_2756 && git checkout pr_2756
  • helm install agones ./install/helm/agones --namespace agones-system --set agones.image.tag=1.27.0-142fba6-amd64

@google-oss-prow google-oss-prow bot added the lgtm label Oct 6, 2022
@roberthbailey roberthbailey merged commit 1a27e7a into googleforgames:main Oct 6, 2022
@google-oss-prow
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: gongmax, markmandel, roberthbailey

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [markmandel,roberthbailey]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@gongmax gongmax deleted the image-streaming branch October 6, 2022 18:35
@mangalpalli mangalpalli added this to the 1.27.0 milestone Oct 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[GKE] - Should we enable image streaming everywhere?
5 participants