Skip to content

docs: broken jsonpath in quick-start.md "Verify Kmesh Service Logs" command #341

Description

@A-d-i-t-y

Problem:
In the Quick Start guide (docs/setup/quick-start.md), under "4. Verify Kmesh Service Logs", the command is:

kubectl logs -n kmesh-system $(kubectl get pods -n kmesh-system -o jsonpath='{.items.metadata.name}')

.items is a JSON array (kubectl get pods returns multiple pods), so .items.metadata.name is invalid jsonpath syntax without an index or wildcard. Running this command as written returns empty output or an error, so this step fails for anyone following the quick-start guide verbatim.

Expected fix:
Should be either:

kubectl logs -n kmesh-system $(kubectl get pods -n kmesh-system -o jsonpath='{.items[0].metadata.name}')

(for the first pod) or use a label selector to target the Kmesh pod specifically.

Additional context:
I'd like to work on this - happy to submit a PR with the fix.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions