<p>I have deployed vault in K8s . I would like to know how to inject the vault secret in the configmap of a application which has all the configuration of the application.</p>

<p>It's not possible you can not mount the vault secret into config map. But you can parallelly inject both <strong>configmap</strong> and <strong>vault secret</strong> to single deployment.</p>
<ul>
<li>If you are mounting configmap as the file you can mount vault secret as file into same directory or another directory.</li>
<li>If injecting configmap as an environment variable you can also do the same with vault secret.</li>
</ul>
<p>If you are injecting the <strong>configmap</strong> as <strong>environment variable</strong> i would suggest checking out the : <a href="https://github.com/DaspawnW/vault-crd" rel="nofollow noreferrer">https://github.com/DaspawnW/vault-crd</a></p>
<p><code>vault-crd</code> sync the <strong>vault secret</strong> to <strong>Kubernetes secret</strong> and you can easily inject <strong>Kubernetes secret</strong> to deployment. Although it's not good considering the security perspective.</p>
<p>There are many different method you can inject vault secret into deployment.</p>
