-
Notifications
You must be signed in to change notification settings - Fork 15.1k
docs: add kubelet Summary API documentation and fix broken links #51317
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
base: main
Are you sure you want to change the base?
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
e1b557e to
6c0b2e4
Compare
This commit addresses issue 51177 by: - Creating a new documentation page for the kubelet Summary API at /docs/reference/instrumentation/kubelet-summary-api.md - Updating the broken links in node-metrics.md to point to the new page instead of the non-existent /docs/reference/config-api/kubelet-stats.v1alpha1/ The new page provides comprehensive documentation about: - How to access the Summary API - The structure of the API response - Available metrics at node, pod, and container levels - Common use cases and limitations This approach follows Option 2 from the issue discussion, creating proper documentation for the kubelet node stats and pod stats API rather than just removing the link. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
6c0b2e4 to
fba1c3d
Compare
✅ Pull request preview available for checkingBuilt without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Pull request preview available for checkingBuilt without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
|
||
| ## Metrics Categories | ||
|
|
||
| ### Node-Level Metrics |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are these section breakdowns too much detail - should we just mention at a high level across all scopes (Node/Pod/Container)?
|
/kind feature |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a concern about the security advice in this PR. I want to ensure we add a warning (not just a note) about turning off trust anchor checks.
That's the only must-fix thing; other details and suggestions I've made are relevant, but we can skip them or fix them after this PR merges.
content/en/docs/reference/instrumentation/kubelet-summary-api.md
Outdated
Show resolved
Hide resolved
content/en/docs/reference/instrumentation/kubelet-summary-api.md
Outdated
Show resolved
Hide resolved
content/en/docs/reference/instrumentation/kubelet-summary-api.md
Outdated
Show resolved
Hide resolved
content/en/docs/reference/instrumentation/kubelet-summary-api.md
Outdated
Show resolved
Hide resolved
content/en/docs/reference/instrumentation/kubelet-summary-api.md
Outdated
Show resolved
Hide resolved
content/en/docs/reference/instrumentation/kubelet-summary-api.md
Outdated
Show resolved
Hide resolved
content/en/docs/reference/instrumentation/kubelet-summary-api.md
Outdated
Show resolved
Hide resolved
content/en/docs/reference/instrumentation/kubelet-summary-api.md
Outdated
Show resolved
Hide resolved
content/en/docs/reference/instrumentation/kubelet-summary-api.md
Outdated
Show resolved
Hide resolved
content/en/docs/reference/instrumentation/kubelet-summary-api.md
Outdated
Show resolved
Hide resolved
Also, we may not be able to accept this. What copyright license applies to the content produced with Claude? |
I believe it's public domain but not sure how to officially prove that. I can rewrite it if needed of course. |
|
Any news on the copyright and licence status? |
Hey @lmktfy sorry for the radio silence.
They key here is "if any" - it seems US copyright law is not black and white on this and copyright claims are stronger the more a human is involved in the process. Considering I guided most of the implementation and had Claude fill/format, my understanding is that the IP here is vested to me (and from me to the k8s org). Let me know if this works for us or if I should just re-write/paraphrase all the content manually? |
- Convert note to warning box for security concerns about curl --insecure - Add kubectl authorization comment and API server glossary tooltip - Update all section headings per style guide (## Data sources, etc.) - Convert metric lists to Markdown description lists with backticks - Add container structure to JSON example for clarity - Update authorization text to be generic (not RBAC-specific) - Clarify that Summary API returns JSON format only - Add vertical pod autoscaling link - Update data format limitation text to mention OpenMetrics/Prometheus
|
Will check why CI is failing |
Looks like it's a secret detected, unrelated to this change |
|
PR needs rebase. 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-sigs/prow repository. |
Summary
This PR fixes issue #51177 by creating proper documentation for the kubelet Summary API and updating the dead links to point to it.
What type of PR is this?
/kind bug
/kind documentation
What this PR does / why we need it
The PR addresses the dead link issue in the node-metrics.md file where links to
/docs/reference/config-api/kubelet-stats.v1alpha1/were pointing to a non-existent page.Following Option 2 from the issue discussion, this PR:
/docs/reference/instrumentation/kubelet-summary-api.mdnode-metrics.mdto point to the new documentationWhich issue(s) this PR fixes
Fixes #51177
[Potentially] fixes kubernetes/kubernetes#131986
Special notes for your reviewer
The new documentation page covers:
This approach provides users with comprehensive documentation about the kubelet Summary API rather than just removing the link or pointing to external source code.
🤖 Generated with Claude Code