Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

environment variable #829

Open
twobunches opened this issue Nov 13, 2023 · 2 comments
Open

environment variable #829

twobunches opened this issue Nov 13, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@twobunches
Copy link

现在的mysqlcluster这个crd并没有提供环境变量的选项(比如deploy中的env字段),导致我无法为镜像提供环境变量,请问未来是否支持?

@twobunches twobunches added the enhancement New feature or request label Nov 13, 2023
@acekingke
Copy link
Contributor

目前env都是自动生成的,请问在哪种情况下需要手动设置env呢?

@twobunches
Copy link
Author

项目要求数据库的密码不能直接以明文或者k8s的secret文件形式保存,要使用vault组件通过环境变量的方式传递给镜像,对于镜像我们改造过,会根据环境变量去创建数据库用户(密码也不能明文出现在docker镜像中)。因此手动设置env的需求其实是建立在使用自定义的docker镜像的基础上。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants