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

Issue with k8s.io/docs/reference/command-line-tools-reference/kube-controller-manager/ #15272

Closed
ethaeris opened this issue Jul 3, 2019 · 14 comments
Assignees
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. priority/backlog Higher priority than priority/awaiting-more-evidence.

Comments

@ethaeris
Copy link

ethaeris commented Jul 3, 2019

This is a Bug Report

Problem:
Two different parts of the documentation imply that the terminated-pod-gc-threshold configuration value is two different units.

https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-lifetime implies that terminated-pod-gc-threshold is in seconds:
"The only exception to this rule is that Pods with a phase of Succeeded or Failed for more than some duration (determined by terminated-pod-gc-threshold in the master) will expire and be automatically destroyed."

https://kubernetes.io/docs/reference/command-line-tools-reference/kube-controller-manager/ implies that it is a number of pods:
"Number of terminated pods that can exist before the terminated pod garbage collector starts deleting terminated pods. If <= 0, the terminated pod garbage collector is disabled."

Proposed Solution:
Update one page or the other to reflect the unit of terminated-pod-gc-threshold.

Page to Update:
https://kubernetes.io/docs/reference/command-line-tools-reference/kube-controller-manager/
and/or
https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-lifetime

@sftim
Copy link
Contributor

sftim commented Sep 30, 2019

/kind cleanup
/priority backlog

@k8s-ci-robot k8s-ci-robot added kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. priority/backlog Higher priority than priority/awaiting-more-evidence. labels Sep 30, 2019
@sftim
Copy link
Contributor

sftim commented Sep 30, 2019

Also:
/help

@k8s-ci-robot
Copy link
Contributor

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

Please ensure the request meets the requirements listed here.

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

In response to this:

Also:
/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 Sep 30, 2019
@sftim
Copy link
Contributor

sftim commented Sep 30, 2019

If anyone wants advice on how to tackle this issue, reply and mention me. I'll try to help.

@hase1128
Copy link
Contributor

hase1128 commented Oct 7, 2019

@sftim
I checked related source codes.
Explanation of the following URL is correct.
https://kubernetes.io/docs/reference/command-line-tools-reference/kube-controller-manager/

Related source codes

https://github.com/kubernetes/kubernetes/blob/master/pkg/controller/podgc/gc_controller.go
https://github.com/kubernetes/kubernetes/blob/master/pkg/controller/podgc/doc.go

// Package podgc contains a very simple pod "garbage collector" implementation,
// PodGCController, that runs in the controller manager. If the number of pods
// in terminated phases (right now either Failed or Succeeded) surpasses a
// configurable threshold, the controller will delete pods in terminated state
// until the system reaches the allowed threshold again. The PodGCController
// prioritizes pods to delete by sorting by creation timestamp and deleting the
// oldest objects first. The PodGCController will not delete non-terminated
// pods.

So, I think the description of pod-lifetime should be modified.
https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-lifetime

"The only exception to this rule is that Pods with a phase of Succeeded or Failed for more than some duration (determined by terminated-pod-gc-threshold in the master) will expire and be automatically destroyed."

In the above description, the expression of some duration is not wrong, but misleading expressions.
some duration precisely means is as follows.

It takes a certain amount of time until the number of pods with a phase of Succeeded or Failed exceed the value set for terminated-pod-gc-threshold.

Therefore, So, I think the description of pod-lifetime should be modified.
If you agree with my opinion, I handle this issue.

@hase1128
Copy link
Contributor

hase1128 commented Oct 7, 2019

/assign

@sftim
Copy link
Contributor

sftim commented Oct 7, 2019

@hase1128 it sounds like you've already got a handle on what to do to fix this issue
If that's right, I'm happy to let you pick the best approach.

In #15374 I've a draft set of changes to document all built-in controllers. I'll be happy to incorporate recommended wording into a revision to that PR.

@hase1128
Copy link
Contributor

@sftim
sorry for my late response, and thank you for the information of a draft set.
I will do PR next week. (currently, I am a little busy....)

@hase1128
Copy link
Contributor

hase1128 commented Oct 25, 2019

@sftim

I have few questions.

Q1:
I handled this issue and do PR, but this PR handle English document only.
I am Japanese. Should I modify Japanese document ( and other language documents)?

Q2:

In #15374 I've a draft set of changes to document all built-in controllers.

I'm sorry, I would like to know detail procedure to add my modification into #15374.
(This PR is my first one, so I am not yet familiar with this work...)

k8s-ci-robot pushed a commit that referenced this issue Nov 5, 2019
* modify terminated-pod-gc-threshold explanation (#15272)

* modify terminated-pod-gc-threshold explanation (#15272)
k8s-ci-robot pushed a commit that referenced this issue Nov 10, 2019
…17422)

* Modify terminated-pod-gc-threshold explanation in Japanese (#15272)

* Correct the word "controller" to the correct notation in Japanese

Co-Authored-By: Naoki Oketani <[email protected]>

* Remove unnecessary space
@inductor
Copy link
Member

FYI, the Japanese PR has been merged :)

neolit123 pushed a commit to neolit123/website that referenced this issue Nov 14, 2019
…s#15272) (kubernetes#17422)

* Modify terminated-pod-gc-threshold explanation in Japanese (kubernetes#15272)

* Correct the word "controller" to the correct notation in Japanese

Co-Authored-By: Naoki Oketani <[email protected]>

* Remove unnecessary space
@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/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 Feb 8, 2020
@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Mar 9, 2020
@fejta-bot
Copy link

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

@k8s-ci-robot
Copy link
Contributor

@fejta-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

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.

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/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. priority/backlog Higher priority than priority/awaiting-more-evidence.
Projects
None yet
Development

No branches or pull requests

6 participants