<p>I have a spring boot project that saves employee photos and other documents in &quot;C:\Program Files\Apache Software Foundation\Tomcat 8.0\webapps\employee&quot; path and stores the file name on the Database. Then I run the respecting Tomcat 8.0 on port 8085.<br />
So, my front end can easily access those photos and files by requesting on http://localhost:8085/employee/photosOrDocNameFromDb.
The problem is my client wants to deploy it by Kubernetes. So, I have idea about how to deploy the spring boot application on Kubernetes, but how about those images and documents I save on the local file system?<br />
Clearly, if I save my images inside the pods, I can't access it like the previous way(running a dummy tomcat to expose it by URL).
Is there any way that my Kubernetes deployed spring boot application can access the local file system? So that I can just run another tomcat on that location to access those images and documents.
Any Idea about how I can solve this. Should I use another pods to save those images? That case I have to access another pod fily system from the pod I deployed my application.</p>

user3650170
<p>You could user Persistent Volumes for that.</p>
<blockquote>
<b>Types of Persistent Volumes</b>
<p>PersistentVolume types are implemented as plugins. Kubernetes currently supports the following plugins:</p>
<p>awsElasticBlockStore - AWS Elastic Block Store (EBS)<br />
azureDisk - Azure Disk<br />
azureFile - Azure File<br />
cephfs - CephFS volume<br />
csi - Container Storage Interface (CSI)<br />
fc - Fibre Channel (FC) storage<br />
gcePersistentDisk - GCE Persistent Disk<br />
glusterfs - Glusterfs volume<br />
hostPath - HostPath volume (for single node testing only; WILL NOT WORK in a<br />
multi-node cluster; consider using local volume instead)<br />
iscsi - iSCSI (SCSI over IP) storage<br />
local - local storage devices mounted on nodes.<br />
nfs - Network File System (NFS) storage<br />
portworxVolume - Portworx volume<br />
rbd - Rados Block Device (RBD) volume<br />
vsphereVolume - vSphere VMDK volume</p>
</blockquote>
<p>See <a href="https://kubernetes.io/docs/concepts/storage/persistent-volumes/" rel="nofollow noreferrer">https://kubernetes.io/docs/concepts/storage/persistent-volumes/</a> for more details.</p>
