> For the complete documentation index, see [llms.txt](https://til.yulrizka.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://til.yulrizka.com/k8s/view-secret.md).

# view secret

List secrets

```
$ kubecetl get secrets
```

View particular secret

```
$ kubectl describe secret foo

Name:         foo
Namespace:    foonamespac
Labels:       <none>
Annotations:  
Type:         Opaque

Data
====
DB_PASSWORD:  25 bytes
```

to view the content of a secret

```
kubectl get secret foo -o jsonpath="{.data.DB_PASSWORD}" | base64 --decode
someSecurePassword
```
