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

Adds ability to configure frequency for pod termination via annotation #352

Closed
wants to merge 3 commits into from

Conversation

multimac
Copy link

@multimac multimac commented Jul 1, 2021

Adds ability to configure frequency for pod termination via annotation.

Closes #20

Allows specifying a new command line flag, --termination-frequency-annotation which sets the annotation to look for and use to calculate the approximate frequency at which to terminate a given pod. Follows the examples given in #20, such as...

  • chaos.alpha.kubernetes.io/frequency=2/day for "kill this twice per day"
  • chaos.alpha.kubernetes.io/frequency=10/hour for "kill this ten times per hour"
  • chaos.alpha.kubernetes.io/frequency=1/week for "kill this once a week"
  • chaos.alpha.kubernetes.io/frequency=0.5/day for "kill this pod once every two days"

Pods without the annotation are assumed to always be candidates for termination. The --max-kill flag also still applies and will potentially limit how frequently a pod is terminated if it isn't high enough.

@multimac multimac closed this Jul 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Decouple individual pod termination frequency from cluster size
1 participant