可以通过 kubectl get secret 查看存在的 secret。
kubectl get secret
显示有两个数据条目,kubectl describe secret 查看条目的 Key:
kubectl describe secret
如果还想查看 Value,可以用 kubectl edit secret mysecret:
kubectl edit secret mysecret
然后通过 base64 将 Value 反编码:
下节学习如何在 Pod 中使用 Secret。