Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add support for limiting grace period during soft eviction #25772

Merged

Conversation

derekwaynecarr
Copy link
Member

Adds eviction manager support in kubelet for max pod graceful termination period when a soft eviction is met.

Kubelet evicts pods when available memory falls below configured eviction thresholds

/cc @vishh

@derekwaynecarr derekwaynecarr added the release-note Denotes a PR that will be considered when it comes time to generate release notes. label May 17, 2016
@derekwaynecarr derekwaynecarr added this to the v1.3 milestone May 17, 2016
@k8s-github-robot k8s-github-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label May 17, 2016
@@ -44,6 +44,8 @@ const (
type Config struct {
// PressureTransitionPeriod is duration the kubelet has to wait before transititioning out of a pressure condition.
PressureTransitionPeriod time.Duration
// Maximum allowed grace period (in seconds) to use when terminating pods in response to a soft eviction threshold being met.
MaxPodGracePeriod int64
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: Add Seconds suffix to the field.

@vishh
Copy link
Contributor

vishh commented May 18, 2016

Just one nit. Otherwise LGTM

@vishh vishh assigned vishh and unassigned yujuhong May 18, 2016
@derekwaynecarr
Copy link
Member Author

@vishh nit addressed.

@vishh vishh added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 18, 2016
@derekwaynecarr
Copy link
Member Author

@k8s-bot test this issue #25652

@k8s-github-robot k8s-github-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 20, 2016
@derekwaynecarr derekwaynecarr added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 20, 2016
@k8s-github-robot k8s-github-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 20, 2016
@derekwaynecarr derekwaynecarr added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 20, 2016
@k8s-github-robot
Copy link

@k8s-bot test this [submit-queue is verifying that this PR is safe to merge]

@k8s-bot
Copy link

k8s-bot commented May 21, 2016

GCE e2e build/test passed for commit 2a1d3fa.

@k8s-github-robot
Copy link

Automatic merge from submit-queue

@k8s-github-robot k8s-github-robot merged commit 4bb085c into kubernetes:master May 21, 2016
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants