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

Disable MachinePool ASG instance refresh #3447

Closed
mweibel opened this issue Apr 26, 2022 · 9 comments · Fixed by #3730
Closed

Disable MachinePool ASG instance refresh #3447

mweibel opened this issue Apr 26, 2022 · 9 comments · Fixed by #3730
Assignees
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/feature Categorizes issue or PR as related to a new feature. lifecycle/active Indicates that an issue or PR is actively being worked on by a contributor. priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete. triage/accepted Indicates an issue or PR is ready to be actively worked on.
Milestone

Comments

@mweibel
Copy link
Contributor

mweibel commented Apr 26, 2022

/kind feature

Describe the solution you'd like
I'd like the ability to disable automatic instance refresh on a machinepool. Currently when one e.g. changes the AMI of a AWSMachinePool, an instance refresh is automatically started:
https://github.com/kubernetes-sigs/cluster-api-provider-aws/blob/main/exp/controllers/awsmachinepool_controller.go#L480

Anything else you would like to add:
We have long running jobs on windows machines (boot up time takes a while and is expensive due to windows licensing). Ideally updating an AMI would not automatically refresh the instances but instead new instances come up with the new AMI while old instances are left as-is. In our use case they get shutdown after the job anyway, so with time a refresh is done without interrupting workloads.

I'd be happy to collaborate on a PR for this. I'm not 100% which approach to take - there are RefreshPreferences with a Strategy (which currently only allows Rolling):

Strategy *string `json:"strategy,omitempty"`

I could extend this to e.g. allow Disable as the Strategy, but then it wouldn't map 1:1 to the ASG refresh properties so I'm not sure if this is the best approach.

Environment:

  • Cluster-api-provider-aws version: 1.4.1
  • Kubernetes version: (use kubectl version): 1.23
  • OS (e.g. from /etc/os-release): windows/linux hybrid
@k8s-ci-robot k8s-ci-robot added kind/feature Categorizes issue or PR as related to a new feature. needs-priority needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Apr 26, 2022
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle stale
  • Mark this issue or PR as rotten with /lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jul 25, 2022
@Skarlso
Copy link
Contributor

Skarlso commented Jul 26, 2022

/remove-lifecycle stale

@k8s-ci-robot k8s-ci-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jul 26, 2022
@Skarlso
Copy link
Contributor

Skarlso commented Jul 26, 2022

Hello @mweibel.

This is still a desired thing, right?

@mweibel
Copy link
Contributor Author

mweibel commented Jul 26, 2022

hi @Skarlso
yes :)

@sedefsavas
Copy link
Contributor

/triage accepted

@k8s-ci-robot k8s-ci-robot added triage/accepted Indicates an issue or PR is ready to be actively worked on. and removed needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Aug 16, 2022
@sedefsavas sedefsavas added this to the v2.x milestone Aug 16, 2022
@sedefsavas
Copy link
Contributor

/help

@k8s-ci-robot
Copy link
Contributor

@sedefsavas:
This request has been marked as needing help from a contributor.

Guidelines

Please ensure that the issue body includes answers to the following questions:

  • Why are we solving this issue?
  • To address this issue, are there any code changes? If there are code changes, what needs to be done in the code and what places can the assignee treat as reference points?
  • Does this issue have zero to low barrier of entry?
  • How can the assignee reach out to you for help?

For more details on the requirements of such an issue, please see here and ensure that they are met.

If this request no longer meets these requirements, the label can be removed
by commenting with the /remove-help command.

In response to this:

/help

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-ci-robot k8s-ci-robot added the help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. label Aug 16, 2022
@sedefsavas sedefsavas added the priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete. label Aug 16, 2022
@harveyxia
Copy link
Contributor

I am also interested in this feature—we want to use our own tooling for managing instance rotation for existing ASGs, and Cluster API for managing the lifecycle of the ASG itself.

@richardcase
Copy link
Member

/assign harveyxia
/lifecycle active

@k8s-ci-robot k8s-ci-robot added the lifecycle/active Indicates that an issue or PR is actively being worked on by a contributor. label Oct 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/feature Categorizes issue or PR as related to a new feature. lifecycle/active Indicates that an issue or PR is actively being worked on by a contributor. priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete. triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants