[英]Populate kubernetes Configmap from hashicorp vault
i want to populate configmaps from data inside vault in kubernetes.我想从 kubernetes 中的保险库内的数据填充配置映射。 I just complete setup of vault and auth method as
kubernetes(Service account)
and userpass
.我刚刚将 vault 和 auth 方法设置为
kubernetes(Service account)
和userpass
。
Can someone suggest easy way to integrate variables for application?有人可以建议为应用程序集成变量的简单方法吗? what to add in yaml file?
在 yaml 文件中添加什么? if i can populate configmap then i can easily use it to yaml.
如果我可以填充 configmap,那么我可以轻松地将它用于 yaml。
how to changes will be affected if variable change on vault.如果 Vault 上的变量更改,如何更改将受到影响。
You can use Vault CRD as Xavier Adaickalam mentioned.您可以像 Xavier Adaickalam 提到的那样使用 Vault CRD。
Regarding the subject of variable changes, you have 2 ways of exposing variables inside Pods, using volumes and using environment variables .关于变量更改的主题,您有两种方法可以在 Pod 中公开变量, 使用卷和使用环境变量。 Volumes are updated automatically when the secrets are modified.
修改机密时会自动更新卷。 Unfortunately, environment variables do not receive updates even if you modify your secrets.
不幸的是,即使您修改了密码,环境变量也不会收到更新。 You have to restart your container if the values are modified.
如果修改了值,您必须重新启动容器。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.