Repository navigation
Add documentation site for every tool (GitHub Pages) - #9
Merged
Merged
Conversation
- MkDocs Material site under docs/: installation, permissions and profiles, a section for each of the 67 shipped tools, symptom-based recipes, troubleshooting, contributing - docs.yml: strict build on PRs, deploy to GitHub Pages on main - scripts/check-docs.sh fails CI if a tool in the smoke test has no documentation section; smoke test now covers all 67 tools - Correct capability claims found while testing on a kind cluster: tcpdump works with the default profile, netadmin drops SYS_PTRACE Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
docs/, to be published at https://ngpayyappilly.github.io/k8s-debug/. It has:docs.ymlbuilds the site withmkdocs build --strict(broken links and anchors fail) on PRs, and deploys to GitHub Pages on pushes tomain.scripts/check-docs.shfails CI if a tool in the smoke test has no docs section, so the docs can't fall behind the image. The smoke test now covers all 67 tools (it was 39).Verified against a real cluster
I ran the claims on a throwaway kind cluster (kubectl 1.36, containerd). This corrected some of my earlier statements, and this PR fixes them in the README and banner:
generalprofile already includesSYS_PTRACEandNET_RAW, sotcpdumpworks withoutnetadmin.netadminaddsNET_ADMINbut dropsSYS_PTRACE.--customcapability lists replace the profile's lists./proc/<pid>/root, and I tested that.runAsUser: 1000gives a debug container with no capabilities.--customwithrunAsUser: 0fixes it.--profile=restrictedfails withCreateContainerConfigErrorbecause the image runs as root. It works with--customand a numeric uid.kubectl debug -iloses short or binary output. The docs use the "create withsleep, thenkubectl exec" pattern, which I tested for pcap streaming andkubectl cp -c.iptables-legacyversusnft.Test plan
scripts/smoke-test.sh: all 67 tools present and runnable on arm64scripts/check-docs.sh: all 67 tools documentedmkdocs build --strictwith anchor validation: cleanNotes
ghcr.io/ngpayyappilly/k8s-debug:latest. That tag does not exist yet. It is only published with the first stable version tag, and today onlyedgeandsha-*exist. Pushv0.1.0after merging, or the quick-start commands will fail withmanifest unknown.bpftrace,dmesg,iotop,nsenterand node-debug behaviour was tested on Docker Desktop's Linux kernel through kind. Managed cloud node kernels may differ.🤖 Generated with Claude Code