<p>I am running Hashicorp’s Vault server as a docker image as one of the pods in a Kubernetes cluster.
I have defined service too.
What will happen to the secret that are stored, if that pod dies.</p>

Santosh
<p>It depends on the storage you used for vault. Vault supports various storage (see <a href="https://www.vaultproject.io/docs/configuration/storage/index.html" rel="nofollow noreferrer">here</a>). For example,</p>

<ul>
<li><p>If you are using <code>In-Memory</code> storage, then data will be vanished after pod dies. </p></li>
<li><p>If you are using <code>Filesystem</code>, then it will depend on type of volume you use (see <a href="https://kubernetes.io/docs/concepts/storage/volumes/" rel="nofollow noreferrer">here</a> for different types of volumes). For <code>emptyDir</code> volume data will be lost after pod dies.</p></li>
<li><p>For other storage type like <code>Google Cloud Storage</code>, <code>Amazon S3</code> data will remain even if pod dies. But if you delete the storage data will be gone.</p></li>
</ul>
