Inspect secret type and key names without dumping values.

Section: ConfigMaps and Secrets

Describe secret

bash
bash
kubectl describe secret app-secret -n payments
Explanation

Inspect secret type and key names without dumping 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 ConfigMaps and Secrets
Describe configmap
Inspect key-value data and metadata.
OpenIn sheetbashsame section
List secrets
Show Secrets across namespaces.
OpenIn sheetbashsame section
Get secret key (base64)
Print a base64-encoded secret value.
OpenIn sheetbashsame section
Get decoded secret key
Print a decoded secret value locally.
OpenIn sheetbashsame section
Create secret from env file
Create a secret from an env file.
OpenIn sheetbashsame section
List configmaps
Show ConfigMaps across namespaces.
OpenIn sheetbashsame section