简体   繁体   English

从 hashcorp vault 填充 kubernetes Configmap

[英]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 try using Vault CRD , when you create a custom resource of type vault, it will create a secrets using a data from the vault您可以尝试使用Vault CRD ,当您创建类型为 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.

相关问题 从 hashcorp vault 填充 kubernetes configmap - From hashicorp vault populate kubernetes configmap HashiCorp Vault 用于填充 kubernetes 的秘密 - HashiCorp Vault to populate kubernetes secrets Hashicorp Vault作为Kubernetes上的StatefulSet - Hashicorp Vault as a StatefulSet on Kubernetes 未在 kubernetes 中获取 Hashicorp 保险库机密 - Hashicorp vault secrets not fetched in kubernetes 如何从 Kubernetes 将秘密写入 HashiCorp Valut 或 Azure Key Vault? - How to write secrets to HashiCorp Valut or Azure Key Vault from Kubernetes? 如何在kubernetes中从ConfigMap填充图像值? - How can I populate image value from ConfigMap in kubernetes? Flink kubernetes 部署 - 如何从 Hashicorp Vault 提供 S3 凭据? - Flink kubernetes deployment - how to provide S3 credentials from Hashicorp Vault? 如何在领事(Hashicorp-consul)中将保险库(Hashicorp-vault)注册为服务,我使用的是kubernetes? - How to register vault (Hashicorp-vault) as a service in consul (Hashicorp-consul), I am using kubernetes? Kubernetes - cert-manager - Hashicorp Vault - 证书的就绪状态为空白 - Kubernetes - cert-manager - Hashicorp Vault - Ready status of certificate is blank 如何使用 Spinnaker 和 Hashicorp Vault 创建 kubernetes 机密 - How to create a kubernetes secret using Spinnaker and Hashicorp Vault
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM