Skip to content

docs: add how-to guide for debugging Kubernetes charms#2498

Open
tonyandrewmeyer wants to merge 11 commits into
canonical:mainfrom
tonyandrewmeyer:docs-debug-k8s
Open

docs: add how-to guide for debugging Kubernetes charms#2498
tonyandrewmeyer wants to merge 11 commits into
canonical:mainfrom
tonyandrewmeyer:docs-debug-k8s

Conversation

@tonyandrewmeyer

@tonyandrewmeyer tonyandrewmeyer commented May 22, 2026

Copy link
Copy Markdown
Collaborator

This PR adds a follow-on guide to the recent how-to for debugging, specifically focused on K8s charms and using Pebble.

At the recent sprints we received a couple of comments that more information was needed for debugging in this specific case, so this is addressing those.

The main focus is on Pebble, but there's a little bit for K8s directly, without going all the way into being a guide for debugging K8s itself.

Preview

Fixes #2489

Comment thread docs/howto/debug-a-kubernetes-charm.md Outdated

@dwilding dwilding left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for compiling this! I need to review in more detail, but have taken a first pass.

I think it would be easier for people to orient themselves if we move "Common failure modes" nearer the beginning of the doc - probably after "Know which container you’re looking at". I think that section is a great quick reference and should be (slightly) expanded by migrating other content from around the doc.

I've commented on the pieces I think we should move.

My thinking is that we should make a cleaner split between the why and the how. If you already know why you need to be reading a particular section, there should be minimal intro text. Get right into the how. But if you don't know which section you should be reading, "Common failure modes" points you in the right direction and helps you understand why.

Let me know if you'd like to discuss this suggestion together. I'm also very happy to experiment with different structures if that would help.

Comment thread docs/howto/debug-a-kubernetes-charm.md Outdated
Comment thread docs/howto/debug-a-kubernetes-charm.md Outdated
Comment thread docs/howto/debug-a-kubernetes-charm.md Outdated
Comment thread docs/howto/debug-a-kubernetes-charm.md Outdated
@tonyandrewmeyer

Copy link
Copy Markdown
Collaborator Author

@dwilding could you take another look when you have some time? No rush :)

@tonyandrewmeyer tonyandrewmeyer requested a review from dwilding May 29, 2026 03:54

@dwilding dwilding left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Great doc, thanks! Sorry for the delay... I had an almost-finished review pending but got sidetracked with other stuff.

Comment thread docs/howto/debug-a-kubernetes-charm.md Outdated
Comment thread docs/howto/debug-a-kubernetes-charm.md Outdated
Comment thread docs/howto/debug-a-kubernetes-charm.md Outdated
Comment thread docs/howto/debug-a-kubernetes-charm.md Outdated
Comment thread docs/howto/debug-a-kubernetes-charm.md Outdated
Comment thread docs/howto/debug-a-kubernetes-charm.md Outdated
Comment thread docs/howto/debug-your-charm.md Outdated
Comment thread docs/howto/debug-a-kubernetes-charm.md Outdated
Comment thread docs/howto/debug-a-kubernetes-charm.md Outdated
Comment thread docs/howto/debug-a-kubernetes-charm.md Outdated
tonyandrewmeyer and others added 4 commits June 5, 2026 21:21
Co-authored-by: Dave Wilding <tech@dpw.me>
- Replace `--`/`;` connectives with full stops in the symptoms table.
- Promote the workload-container SSH command to its own subsection.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Extend the debugging how-to with Pebble-specific advice

2 participants