简体   繁体   English

使用 bitnami 的 helm chart 后,如何更改 mysql 的密码?

[英]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:笔记:

  • The passwords have been saved into the secrets of EKS密码已保存到EKS的秘密中

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.

相关问题 Pod 错误:MacOS 上的 bitnami mysql 舵图 - Pod Error: bitnami mysql helm chart on MacOS Helm:如何从repo安装最新的helm图表 - Helm : how do I Install the latest helm chart from repo 如果我想更改 kubernetes 中由 alertmanager 操作的服务使用的端口,我应该在哪里编辑 helm chart? - Where do I edit the helm chart if I want to change the port used by alertmanager-operated service in kubernetes? 从 bitnami helm chart 部署后的 Pod cassandra-0 root 密码 - Pod cassandra-0 root password after deploying from bitnami helm chart 使用现有的 Persistence Volume Claim 部署 bitnami/mysql helm chart - Deploying bitnami/mysql helm chart with an existing Persistence Volume Claim 使用 Bitnami WordPress 舵图,如何通过 FTP 连接 Filezilla? - Using the Bitnami WordPress helm chart, how can I connect Filezilla via FTP? 使用 helm 安装后如何更改 Spinnaker 配置? - How do I change Spinnaker configs after an installation with helm? postgresql bitnami 舵图上的 CrashLoopBackOff - CrashLoopBackOff on postgresql bitnami helm chart Kubernetes 上 Bitnami helm 图表中 Keycloak 18 的生产设置 - Production setting for Keycloak 18 from Bitnami helm chart on Kubernetes 使用 helm 和 bitnami repo 安装后如何再次获取 mysql NOTES.txt 输出 - How to get again mysql NOTES.txt output after installed it using helm and bitnami repo
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM