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

Create garbage collection docs #28870

Merged
merged 1 commit into from
Jul 27, 2021
Merged

Conversation

shannonxtreme
Copy link
Contributor

@shannonxtreme shannonxtreme commented Jul 8, 2021

Fixes #4322
Replaces #28840

Overview

Consolidate and improve docs on Garbage Collection.

The following tasks should be completed before review:

  • Create a GC concept page
  • Create a Finalizers concept page
  • Create GC glossary term
  • Create finalizers glossary term
  • Create task for configuring kubelet GC (tracked in Create a task page for using finalizers to control deletion #28909)
  • Create task for configuring cascading deletion
  • Create task for using Finalizers to control deletion (or link to blog post)
  • Find a new home for the garbage collection concept topic

/sig docs
/sig apps
/wg api-expression
/assign
/cc @sftim
/do-not-merge work-in-progress

@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. sig/docs Categorizes an issue or PR as relevant to SIG Docs. sig/apps Categorizes an issue or PR as relevant to SIG Apps. labels Jul 8, 2021
@k8s-ci-robot k8s-ci-robot requested a review from sftim July 8, 2021 21:46
@k8s-ci-robot k8s-ci-robot added wg/api-expression Categorizes an issue or PR as relevant to WG API Expression. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. language/en Issues or PRs related to English language size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jul 8, 2021
@k8s-ci-robot k8s-ci-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jul 8, 2021
@shannonxtreme
Copy link
Contributor Author

shannonxtreme commented Jul 8, 2021

@\sftim: for configuring container and image garbage collection, we already have a task for configuring kubelet using a file or in a live node. Maybe instead of a new task that duplicates some of the content, we can link to that page and to the kubeletconfiguration reference so users can build off that?

@netlify
Copy link

netlify bot commented Jul 8, 2021

✔️ Deploy Preview for kubernetes-io-main-staging ready!

🔨 Explore the source changes: b1573ad

🔍 Inspect the deploy log: https://app.netlify.com/sites/kubernetes-io-main-staging/deploys/60edf8947cec370007e87184

😎 Browse the preview: https://deploy-preview-28870--kubernetes-io-main-staging.netlify.app

Copy link
Contributor

@sftim sftim left a comment

Choose a reason for hiding this comment

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

More feedback

The main thing is to find a new home for the overall Garbage Collection concept. I suggest placing it within https://k8s.io/docs/concepts/architecture/ (as the last topic)

content/en/docs/reference/glossary/finalizer.md Outdated Show resolved Hide resolved
Comment on lines 109 to 208
**Kubernetes version 1.20.x and later**

Run the following command:

```shell
kubectl delete deployment nginx-deployment --cascade=background
```

**Kubernetes versions prior to 1.20.x**

Run the following command:

```shell
kubectl delete deployment nginx-deployment --cascade=true
```
Copy link
Contributor

Choose a reason for hiding this comment

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

Having seen the preview, I'd prefer to make this Kubernetes version choice happen in tabs, and use headings to separate the kubectl vs. API + curl approaches.

The second tab can also refer readers to https://kubernetes.io/docs/home/supported-doc-versions/

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay. Can you confirm what the actual version number is? I wasn't sure from the commit (I've added a TODO comment in the MD to remind myself to verify)

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't know when the change happened (I'd have to ask Google or, failing that, spelunk in the source code history for kubectl).

@shannonxtreme
Copy link
Contributor Author

Running a little behind on creating tasks. I'll create the final two topics on Monday and then make sure all my TODOs are resolved.

@sftim
Copy link
Contributor

sftim commented Jul 12, 2021

@shannonxtreme it'd be OK to log issues about the final 2 task pages, and then adapt this PR to leave room for those new tasks. We don't need to land all the improvements on the first go.

@shannonxtreme shannonxtreme marked this pull request as ready for review July 12, 2021 15:41
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 12, 2021
@shannonxtreme
Copy link
Contributor Author

shannonxtreme commented Jul 12, 2021

@shannonxtreme it'd be OK to log issues about the final 2 task pages, and then adapt this PR to leave room for those new tasks. We don't need to land all the improvements on the first go.

@sftim Ready for review :) updated redirects as well and moved GC topic to /concepts/architecture.

Copy link
Contributor

@sftim sftim left a comment

Choose a reason for hiding this comment

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

LGTM

This is really good work.
I've got more feedback, but if this merged as-is, it'd already be a strong improvement.

@sftim
Copy link
Contributor

sftim commented Jul 12, 2021

BTW I don't see a tracking issue for Create task for configuring kubelet GC

@sftim
Copy link
Contributor

sftim commented Jul 26, 2021

LGTM

Even if further SIG / WG review isn't forthcoming soon, this feels correct to me. I'd be inclined to merge it on the basis that it's going to be an overall strong improvement even if we happen to bring in a new inaccurate detail somewhere.

@kbhawkey
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 27, 2021
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: cbf41d945172a76ec0fbbeee5320b83a699fe63a

considers the following disk usage limits when making garbage collection
decisions:

* `HighThresholdPercent`
Copy link
Contributor

Choose a reason for hiding this comment

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

This and the following field names should be spelt in the way how users see it, i.e. highThresholdPercent rather than how developers see it.

@tengqm
Copy link
Contributor

tengqm commented Jul 27, 2021

/approve
Thanks.

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: tengqm

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 27, 2021
@k8s-ci-robot k8s-ci-robot merged commit d078b42 into kubernetes:main Jul 27, 2021
@shannonxtreme shannonxtreme deleted the gc-docs branch July 27, 2021 13:43
```

{{< note >}}
Cross-namespace owner references are disallowed by design.
Copy link
Member

Choose a reason for hiding this comment

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

This content appears to have been lost in this rework and is critical to communicate

Copy link
Member

Choose a reason for hiding this comment

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

Opened #29480 to track restoring that bit

@sftim
Copy link
Contributor

sftim commented Oct 19, 2021

/kind refactor
Note this to help other teams, eg localization

@k8s-ci-robot
Copy link
Contributor

@sftim: The label(s) kind/refactor cannot be applied, because the repository doesn't have them.

In response to this:

/kind refactor
Note this to help other teams, eg localization

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.

@sftim
Copy link
Contributor

sftim commented Oct 19, 2021

/label refactor

@k8s-ci-robot
Copy link
Contributor

@sftim: The label(s) /label refactor cannot be applied. These labels are supported: api-review, tide/merge-method-merge, tide/merge-method-rebase, tide/merge-method-squash, team/katacoda

In response to this:

/label refactor

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.

@reylejano
Copy link
Member

/label refactor

@k8s-ci-robot k8s-ci-robot added the refactor Indicates a PR with large refactoring changes e.g. removes files or moves content label Nov 1, 2021
shannonxtreme added a commit to shannonxtreme/website that referenced this pull request Nov 11, 2021
I’ve been a member for a fair bit. Reviewed, worked on, or been involved in tracking 50+ PRs.

Some highlights:

* kubernetes#26848
* kubernetes#27716
* kubernetes#27739
* kubernetes#28870
* kubernetes#28740
* kubernetes#28617

Search for PRs involving me: https://github.com/kubernetes/website/pulls?page=2&q=is%3Apr+involves%3Ashannonxtreme
trierra pushed a commit to trierra/website that referenced this pull request Nov 16, 2021
I’ve been a member for a fair bit. Reviewed, worked on, or been involved in tracking 50+ PRs.

Some highlights:

* kubernetes#26848
* kubernetes#27716
* kubernetes#27739
* kubernetes#28870
* kubernetes#28740
* kubernetes#28617

Search for PRs involving me: https://github.com/kubernetes/website/pulls?page=2&q=is%3Apr+involves%3Ashannonxtreme
trierra pushed a commit to trierra/website that referenced this pull request Nov 16, 2021
I’ve been a member for a fair bit. Reviewed, worked on, or been involved in tracking 50+ PRs.

Some highlights:

* kubernetes#26848
* kubernetes#27716
* kubernetes#27739
* kubernetes#28870
* kubernetes#28740
* kubernetes#28617

Search for PRs involving me: https://github.com/kubernetes/website/pulls?page=2&q=is%3Apr+involves%3Ashannonxtreme
trierra pushed a commit to trierra/website that referenced this pull request Nov 16, 2021
I’ve been a member for a fair bit. Reviewed, worked on, or been involved in tracking 50+ PRs.

Some highlights:

* kubernetes#26848
* kubernetes#27716
* kubernetes#27739
* kubernetes#28870
* kubernetes#28740
* kubernetes#28617

Search for PRs involving me: https://github.com/kubernetes/website/pulls?page=2&q=is%3Apr+involves%3Ashannonxtreme
trierra pushed a commit to trierra/website that referenced this pull request Nov 16, 2021
I’ve been a member for a fair bit. Reviewed, worked on, or been involved in tracking 50+ PRs.

Some highlights:

* kubernetes#26848
* kubernetes#27716
* kubernetes#27739
* kubernetes#28870
* kubernetes#28740
* kubernetes#28617

Search for PRs involving me: https://github.com/kubernetes/website/pulls?page=2&q=is%3Apr+involves%3Ashannonxtreme
kevindelgado pushed a commit to kevindelgado/kubernetes.github.io that referenced this pull request Nov 17, 2021
I’ve been a member for a fair bit. Reviewed, worked on, or been involved in tracking 50+ PRs.

Some highlights:

* kubernetes#26848
* kubernetes#27716
* kubernetes#27739
* kubernetes#28870
* kubernetes#28740
* kubernetes#28617

Search for PRs involving me: https://github.com/kubernetes/website/pulls?page=2&q=is%3Apr+involves%3Ashannonxtreme
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. language/en Issues or PRs related to English language lgtm "Looks good to me", indicates that a PR is ready to be merged. refactor Indicates a PR with large refactoring changes e.g. removes files or moves content sig/apps Categorizes an issue or PR as relevant to SIG Apps. sig/docs Categorizes an issue or PR as relevant to SIG Docs. sig/node Categorizes an issue or PR as relevant to SIG Node. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. wg/api-expression Categorizes an issue or PR as relevant to WG API Expression.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Better docs for garbage collection
8 participants