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

by default disable agones-metrics nodepools #3672

Merged
merged 4 commits into from
Mar 6, 2024

Conversation

ashutosji
Copy link
Contributor

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: Since we're not installing Prometheus or Graphana on these clusters. By default, agones-metrics nodepools would be disabled as nodes aren't doing anything. However, we can enable it when needed by passing -var enableAgonesMetricsNodepool=true on the terraform apply command.

Which issue(s) this PR fixes: #3669

Closes #3669

Special notes for your reviewer:

@github-actions github-actions bot added kind/feature New features for Agones size/S labels Feb 26, 2024
@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 2b0026cf-6af8-4593-a2e0-b61d400d5d46

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/3672/head:pr_3672 && git checkout pr_3672
  • 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.39.0-dev-5f8dd01-amd64

@markmandel markmandel added kind/breaking Breaking change area/operations Installation, updating, metrics etc labels Feb 28, 2024
@markmandel
Copy link
Member

Thanks for sending this through!

To compete this enhancement, can we also add documentation here for the new parameters please?
https://agones.dev/site/docs/installation/terraform/gke/#installation

You can see details on writing docs here: https://agones.dev/site/docs/contribute/ - the new parameters will need to go behind a feature shortcode.

Also, we'll want a variable here: https://github.com/googleforgames/agones/blob/main/build/includes/google-cloud.mk with it enabled to be on, so that the default test cluster we use for development still has the metric nodes.

@ashutosji
Copy link
Contributor Author

Thanks for sending this through!

To compete this enhancement, can we also add documentation here for the new parameters please? https://agones.dev/site/docs/installation/terraform/gke/#installation

You can see details on writing docs here: https://agones.dev/site/docs/contribute/ - the new parameters will need to go behind a feature shortcode.

Also, we'll want a variable here: https://github.com/googleforgames/agones/blob/main/build/includes/google-cloud.mk with it enabled to be on, so that the default test cluster we use for development still has the metric nodes.

@markmandel,
Thanks for the review.
I have updated the changes as suggested by you.
Just a quick question, Shall I add next upcoming version in the shortcode or current version(1.38.0) is ok?

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 88c60721-8282-4eac-9cde-fa92bfef201f

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/3672/head:pr_3672 && git checkout pr_3672
  • 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.39.0-dev-4f78e8d-amd64

Copy link
Member

@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.

Small revert, but otherwise, LGTM 👍🏻

Comment on lines 19 to 21
// To enable agones-metrics add below command in `terraform apply`:
// -var enable_agones_metrics_nodepool=true

Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// To enable agones-metrics add below command in `terraform apply`:
// -var enable_agones_metrics_nodepool=true

I think this can be rolled back - we don't have any other variable specific docs in a comment here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think this can be rolled back - we don't have any other variable specific docs in a comment here.

Thanks for the review and suggestions.
Done!

@@ -32,6 +32,7 @@ gcloud-test-cluster: GCP_CLUSTER_NODEPOOL_MIN_NODECOUNT ?= 1
gcloud-test-cluster: GCP_CLUSTER_NODEPOOL_MAX_NODECOUNT ?= 5
gcloud-test-cluster: GCP_CLUSTER_NODEPOOL_WINDOWSINITIALNODECOUNT ?= 0
gcloud-test-cluster: GCP_CLUSTER_NODEPOOL_WINDOWSMACHINETYPE ?= e2-standard-4
gcloud-test-cluster: GCP_CLUSTER_NODEPOOL_ENABLE_AGONES_METRICS_NODEPOOL ?= true
Copy link
Member

Choose a reason for hiding this comment

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

👍🏻

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: a70ae89a-936e-4c74-965f-de10883b1585

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/3672/head:pr_3672 && git checkout pr_3672
  • 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.39.0-dev-fd2f2b6-amd64

@markmandel markmandel enabled auto-merge (squash) March 6, 2024 05:27
@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: f48f5dea-8c2e-477d-8b66-3df3d1f919a9

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/3672/head:pr_3672 && git checkout pr_3672
  • 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.39.0-dev-c1693dc-amd64

@markmandel markmandel merged commit 12d82a1 into googleforgames:main Mar 6, 2024
4 checks passed
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/feature New features for Agones size/S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ Terraform | GKE ] Add option to not create agones-metrics nodepools with cluster
3 participants