更改自动生成的 kops kubernetes 管理员密码

Changing the auto-generated kops kubernetes admin password

我一直在使用 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

参见管理机密 Kops 的文档:Workaround for changing secrets with type "Secret"