view secret
List secrets
1
$ kubecetl get secrets
Copied!
View particular secret
1
$ kubectl describe secret foo
2
​
3
Name: foo
4
Namespace: foonamespac
5
Labels: <none>
6
Annotations:
7
Type: Opaque
8
​
9
Data
10
====
11
DB_PASSWORD: 25 bytes
Copied!
to view the content of a secret
1
kubectl get secret foo -o jsonpath="{.data.DB_PASSWORD}" | base64 --decode
2
someSecurePassword
Copied!
Last modified 1mo ago
Copy link