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

Enforce GCE lifespan during instantiation #7224

Merged
merged 1 commit into from
Aug 15, 2024
Merged

Conversation

leee
Copy link
Contributor

@leee leee commented Aug 15, 2024

Status

Ready for review

Description of Changes

FPF used to have a GCE instance culler tool:
https://github.com/freedomofpress/container-gce-instance-culler
which was packed into a container and run as a cronjob every other hour on Codefresh. Instead of trying to maintain said tool and Codefresh pipeline, define a lifespan during VM creation that GCP will enforce.

Changes proposed in this pull request:

Testing

  • Visual review

FPF used to have a GCE instance culler tool:
 https://github.com/freedomofpress/container-gce-instance-culler
which was packed into a container and run as a cronjob every other hour
on Codefresh. Instead of trying to maintain said tool and Codefresh
pipeline, define a lifespan during VM creation that GCP will enforce.
@leee leee requested a review from a team as a code owner August 15, 2024 21:59
Copy link
Member

@legoktm legoktm left a comment

Choose a reason for hiding this comment

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

Thanks! Will wait for CI to pass before merging.

For reference, the relevant GCE docs are at https://cloud.google.com/compute/docs/instances/limit-vm-runtime.

@legoktm legoktm self-assigned this Aug 15, 2024
@legoktm legoktm merged commit dbdccc5 into develop Aug 15, 2024
31 checks passed
@legoktm legoktm deleted the stg-gha-staging-duration branch August 15, 2024 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants