kubectl get secret
CautionInspect Secrets
kubectl get secret [-n ns]
Lists secrets; values are base64 — extract with -o jsonpath and pipe to base64 -d. Handle with care.
Examples
kubectl get secret db-cred -o jsonpath='{.data.password}' | base64 -dDecode one value
Syntax
kubectl get secret [name] [-o yaml]
Before you run it
Decoded values must not leak into logs.
Used when you see
Related commands
- kubectl get configmapInspect ConfigMaps
- kubectl describeDescribe resource/events
The same reference, with no signal at all
Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.
Get it free on the App Store