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
Last updated 3 years ago