Print the secret data object keys and values.
Section: JSONPath Output Recipes
List secret keys
bash
bash
kubectl get secret app-secret -n payments -o jsonpath='{.data}'Explanation
Print the secret data object keys and values.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing JSONPath Output Recipes