View kubernetes secret
2020-09-17 ::
( 1 minutes reading )
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
comments powered by Disqus