查看 Secret【转】

可以通过 kubectl get secret 查看存在的 secret。

显示有两个数据条目,kubectl describe secret 查看条目的 Key:

如果还想查看 Value,可以用 kubectl edit secret mysecret

然后通过 base64 将 Value 反编码:

下节学习如何在 Pod 中使用 Secret。

posted @ 2019-07-02 14:18  TwoB  阅读(408)  评论(0编辑  收藏  举报