gpt4 book ai didi

amazon-web-services - 更改自动生成的 kops kubernetes 管理员密码

转载 作者:行者123 更新时间:2023-12-04 08:01:19 24 4
gpt4 key购买 nike

我一直在使用 kops 构建 kubernetes 集群,这是一个非常易于使用的工具,但是我无法找到有关如何更改在创建集群时自动生成的管理员密码的方法。

最佳答案

As it is currently not possible to modify or delete + create secrets of type "Secret" with the CLI you have to modify them directly in the kops s3 bucket.

They are stored /clustername/secrets/ and contain the secret as a base64 encoded string. To change the secret base64 encode it with:

echo -n 'MY_SECRET' | base64

and replace it in the "Data" field of the file. Verifiy your change with get secrets and perform a rolling update of the cluster


见于 管理 secret Kops 的文档: Workaround for changing secrets with type "Secret"

关于amazon-web-services - 更改自动生成的 kops kubernetes 管理员密码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46277648/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com