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

Expose maintenance interval as a blueprint setting for node pools in GKE #2971

Conversation

annuay-google
Copy link
Contributor

@annuay-google annuay-google commented Aug 23, 2024

Request

Expose host_maintenance_interval as a user configurable setting in the blueprint

Approach

Expose as an optional terraform variable. If passed, we will set this under node_pool.node_config, using a dynamic block. Possible values are PERIODIC and AS_NEEDED

Test plan

  • Update hpc-gke.yaml example with settings.host_maintenance_interval = PERIODIC. Verified this is reflected in Terraform plan and on gcloud cli
  • Update hpc-gke.yaml example with settings.host_maintenance_interval = AS_NEEDED. Verified this is reflected in Terraform plan and on gcloud cli
  • Keep hpc-gke.yaml as is (no settings.host_maintenance_interval key in yaml). Verified host maintenance interval is unset on gcloud cli

Deployment

Merge to develop. No additional action needed as of now

Submission Checklist

Please take the following actions before submitting this pull request.

  • Fork your PR branch from the Toolkit "develop" branch (not main)
  • Test all changes with pre-commit in a local branch #
  • Confirm that "make tests" passes all tests
  • Add or modify unit tests to cover code changes
  • Ensure that unit test coverage remains above 80%
  • Update all applicable documentation
  • Follow Cluster Toolkit Contribution guidelines #

@annuay-google annuay-google added the release-module-improvements Added to release notes under the "Module Improvements" heading. label Aug 23, 2024
@annuay-google annuay-google marked this pull request as draft August 23, 2024 14:14
@annuay-google
Copy link
Contributor Author

I've tested all scenarios (see description for details). Please review @ankitkinra

@annuay-google annuay-google marked this pull request as ready for review August 26, 2024 05:19
Copy link
Contributor

@arajmane-g arajmane-g left a comment

Choose a reason for hiding this comment

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

re: Test Plan

I think, ml-gke would be the right blueprint to use for testing

modules/compute/gke-node-pool/main.tf Outdated Show resolved Hide resolved
modules/compute/gke-node-pool/variables.tf Show resolved Hide resolved
@annuay-google
Copy link
Contributor Author

annuay-google commented Aug 27, 2024

Added maintenance policy to a daily test. Verified that the changes were reflected in the created node pool (ubuntu) @ankitkinra

@annuay-google annuay-google merged commit 2bd5b5e into GoogleCloudPlatform:develop Aug 29, 2024
8 of 51 checks passed
@annuay-google annuay-google deleted the annuay/expose-maintenance-property-gke branch August 29, 2024 15:31
@rohitramu rohitramu mentioned this pull request Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-module-improvements Added to release notes under the "Module Improvements" heading.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants