简体   繁体   中英

Mounting a Windows Share into Kubernetes pods

We are migrating some windows components (.net 4.5) to Linux containers (.net core). Existing system is a file processor, which watches a shared location and processes file from there. We can't force existing system to start dropping file at some other location, so new containerised application has to access from same shared location. Can a windows share be seen from docker containers? If yes, then how can I use Kubernete deployment file to achieve it? Please advise. Regards,

This feature is not working by default, but yes, you can do this. Here is the project which allows you to do this in a proper way. After volume driver setup, you can use Windows share as PersistentVolume in your Kubernetes cluster.

*Updates

Also you can use windows share as nfs volume in Kubernetes. Here you can find some examples of using nfs in Kubernetes

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM