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

Modifying the default container GC policy parameters #27881

Merged
merged 1 commit into from
Jun 26, 2016

Conversation

ronnielai
Copy link
Contributor

@ronnielai ronnielai commented Jun 22, 2016

  • Marked container GC policy to be deprecated in the future
  • Changed the default values for container GC policy per the eviction proposal

@ronnielai ronnielai added the release-note Denotes a PR that will be considered when it comes time to generate release notes. label Jun 22, 2016
@k8s-github-robot k8s-github-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jun 22, 2016
@ronnielai ronnielai added this to the v1.4 milestone Jun 22, 2016
@ronnielai ronnielai changed the title Marking container gc policy deprecated in the future and changing the… Modifying the default container GC policy Jun 22, 2016
@ronnielai ronnielai changed the title Modifying the default container GC policy Modifying the default container GC policy parameters Jun 22, 2016
@@ -189,8 +189,11 @@ func (s *KubeletServer) AddFlags(fs *pflag.FlagSet) {
fs.BoolVar(&s.RunOnce, "runonce", s.RunOnce, "If true, exit after spawning pods from local manifests or remote urls. Exclusive with --api-servers, and --enable-server")
fs.BoolVar(&s.EnableDebuggingHandlers, "enable-debugging-handlers", s.EnableDebuggingHandlers, "Enables server endpoints for log collection and local running of containers and commands")
fs.DurationVar(&s.MinimumGCAge.Duration, "minimum-container-ttl-duration", s.MinimumGCAge.Duration, "Minimum age for a finished container before it is garbage collected. Examples: '300ms', '10s' or '2h45m'")
fs.MarkDeprecated("minimum-container-ttl-duration", "will be removed in a future version")
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: Mention what flags users have to use instead here and below

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The eviction proposal deprecates these 3 flags without introducing any new flags for replacement. Do you mean the eviction-related flags should be mentioned here?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah. The eviction flags should be suggested as alternatives.

On Wed, Jun 22, 2016 at 11:38 AM, ronnielai notifications@github.com
wrote:

In cmd/kubelet/app/options/options.go
#27881 (comment)
:

@@ -189,8 +189,11 @@ func (s *KubeletServer) AddFlags(fs *pflag.FlagSet) {
fs.BoolVar(&s.RunOnce, "runonce", s.RunOnce, "If true, exit after spawning pods from local manifests or remote urls. Exclusive with --api-servers, and --enable-server")
fs.BoolVar(&s.EnableDebuggingHandlers, "enable-debugging-handlers", s.EnableDebuggingHandlers, "Enables server endpoints for log collection and local running of containers and commands")
fs.DurationVar(&s.MinimumGCAge.Duration, "minimum-container-ttl-duration", s.MinimumGCAge.Duration, "Minimum age for a finished container before it is garbage collected. Examples: '300ms', '10s' or '2h45m'")

  • fs.MarkDeprecated("minimum-container-ttl-duration", "will be removed in a future version")

The eviction proposal
https://github.com/kubernetes/kubernetes/blob/master/docs/proposals/kubelet-eviction.md#deprecation-of-existing-features
deprecates these 3 flags without introducing any new flags for replacement.
Do you mean the eviction-related flags should be mentioned here?


You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/kubernetes/kubernetes/pull/27881/files/31c2c066f8680dfcb41b7d0223066c544188a87d#r68110138,
or mute the thread
https://github.com/notifications/unsubscribe/AGvIKH3lYyE48XbhBNGCRPihEtVy84lQks5qOYESgaJpZM4I8AQH
.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thx. I've updated. PTAL.

@k8s-bot
Copy link

k8s-bot commented Jun 22, 2016

GCE e2e build/test passed for commit 095e04d.

@vishh vishh added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 23, 2016
@vishh
Copy link
Contributor

vishh commented Jun 23, 2016

Given that we are only deprecating these flags and not removing them, we should keep the gc functionality around until these flags can be removed.

@k8s-github-robot
Copy link

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

@k8s-github-robot
Copy link

@k8s-bot test this issue: #IGNORE

Tests have been pending for 24 hours

@k8s-bot
Copy link

k8s-bot commented Jun 26, 2016

GCE e2e build/test passed for commit 095e04d.

@k8s-github-robot
Copy link

Automatic merge from submit-queue

@k8s-github-robot k8s-github-robot merged commit d195829 into kubernetes:master Jun 26, 2016
@k8s-bot
Copy link

k8s-bot commented Jun 26, 2016

GCE e2e build/test passed for commit 095e04d.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in 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/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants