title: Using Kubernetes Persistent Volume for Data Protection
body: <p>To resolve a few issues we are running into with docker and running multiple instances of some services, we need to be able to share values between running instances of the same docker image.  The original solution I found was to create a storage account in Azure (where we are running our kubernetes instance that houses the containers) and a Key Vault in Azure, accessing both via the well defined APIs that microsoft has provided for Data Protection (detailed <a href="https://docs.microsoft.com/en-us/aspnet/core/security/data-protection/configuration/overview?view=aspnetcore-2.1&amp;tabs=aspnetcore2x" rel="nofollow noreferrer">here</a>).</p>
  
  <p>Our architect instead wants to use Kubernetes Persitsent Volumes, but he has not provided information on how to accomplish this (he just wants to save money on the azure subscription by not having an additional storage account or key storage).  I'm very new to kubernetes and have no real idea how to accomplish this, and my searches so far have not come up with much usefulness.  </p>
  
  <p>Is there an extension method that should be used for Persistent Volumes?  Would this just act like a shared file location and be accessible with the PersistKeysToFileSystem API for Data Protection?  Any resources that you could point me to would be greatly appreciated.  </p>