Kubernetes Kops更改基本身份验证密码 [英] Kubernetes kops change basic auth password

查看:103
本文介绍了Kubernetes Kops更改基本身份验证密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用 Kops 成功配置了Kubernetes集群.

I have successfully configured a Kubernetes cluster using Kops.

但是,我找不到在哪里更改自动生成的管理员密码-我该怎么做?

However, I cannot find where to change the auto-generated admin password - how can I do this?

推荐答案

目前尚无简便方法,因为无法通过Kops API创建类型为秘密"的秘密(相当使我困惑知道).唯一的解决方法是更改​​凭据,在这种情况下,您的密码直接在您的s3配置上,如此处所述:

At the moment there is no easy way to do that since there is no way via the Kops API to create a secret of type "Secret" (quite confusing I know). The only workaround is to change the credentials, in this case your password directly on your s3 configuration as explained here:

https://github.com/kubernetes/kops/blob/master/docs/secrets.md#workaround-for-changing-secrets-with-type-secret

并通过更改其配置(例如,我刚刚更新到k8s的新版本)来强制滚动更新集群,或者只需运行kops rolling-update cluster --yes --force

and force a rolling-update of your cluster by changing its configuration (I just updated to the new version of k8s for example) or simply run kops rolling-update cluster --yes --force

显然,将来的一个发行版将很快解决这个问题.

Apparently this will be addressed soon by one of the future releases.

这篇关于Kubernetes Kops更改基本身份验证密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆