查看 Secret【转】
可以通过 kubectl get secret 查看存在的 secret。

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

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

然后通过 base64 将 Value 反编码:

下节学习如何在 Pod 中使用 Secret。
可以通过 kubectl get secret 查看存在的 secret。

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

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

然后通过 base64 将 Value 反编码:

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