[英]How do I change the passwords for mysql after the helm chart from bitnami has been used?
I deployed mysql using this command:我使用以下命令部署了 mysql:
helm install --namespace ns-mysql project-mysql --version 8.8.8
In the future, when I'll need to change the three passwords: mysql-password, mysql-replication-password and mysql-root-password, is there a standard way to do that with helm?将来,当我需要更改三个密码时:mysql-password、mysql-replication-password 和 mysql-root-password,是否有使用 helm 执行此操作的标准方法?
NOTES:笔记:
You need to use the ordinary MySQL commands to change the passwords.您需要使用普通的 MySQL 命令来更改密码。 Running
helm update
with the changed passwords isn't a bad idea (especially if you have other components that are getting the password from the same Secret) but it can't on its own actually change the password.使用更改后的密码运行
helm update
不是一个坏主意(特别是如果您有其他组件从同一 Secret 获取密码),但它本身实际上无法更改密码。
The problem here is that the password is stored inside the MySQL data.这里的问题是密码存储在 MySQL 数据中。 Kubernetes knows that data is in a PersistentVolumeClaim, but it doesn't have a way to read or modify the data, and you can't directly change the password at the filesystem level.
Kubernetes 知道数据在 PersistentVolumeClaim 中,但它没有办法读取或修改数据,也不能直接在文件系统级别更改密码。 Even if that was possible, Kubernetes API calls also can't directly access the PVC contents.
即使这是可能的,Kubernetes API 调用也无法直接访问 PVC 内容。 That means Kubernetes has no way to change the password, and Helm can't do anything Kubernetes can't do.
这意味着 Kubernetes 没有办法更改密码,Helm 不能做任何 Kubernetes 不能做的事情。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.