Hi Imesh/Pubudu, as per your suggestions, I've built up a preliminary version of the Docker images which make use of Kubernetes ConfigMaps for providing configuration files.
Please find the relevant pull request from [1]. Plus, please see [2] for a Significant Interest Group (SIG) forum discussion I have initiated on this matter and on the possibility of using Kubernetes persistent volumes for mounting configuration files. And please check [3] for the feature request I've made for building a Kubernetes ConfigMap from a folder, recursively. You may track the progress of this feature in Kubernetes from [3]. Please feel free to share your suggestions and concerns in above discussions. [1]: https://github.com/wso2/kubernetes-ei/pull/27 [2]: https://groups.google.com/forum/#!topic/kubernetes-sig-storage/qhd2HFd7nbg [3]: https://github.com/kubernetes/kubernetes/issues/62421 On Thu, Apr 12, 2018 at 12:23 AM, Imesh Gunaratne <[email protected]> wrote: > Hi Chiranga, > > I agree with Pubudu on using ConfigMaps for providing configuration files. > > On Tue, Apr 10, 2018 at 8:18 AM, Chiranga Alwis <[email protected]> wrote: > >> ... >> >> But how can we pre-populate the dynamically provisioned persistent volume >> with the files with configuration changes? >> > > This would be possible with static PVs but might be difficult to handle > with dynamic PVs. > > If the user is using static PVs instructions can be provided to copy the > required files to the PVs before starting the pods. If dynamic PVs are > used PVCs might need to be deployed once for making the connection between > the PV and PVCs and then do the same. > > Thanks > Imesh > >> >> >> Your help, suggestions and concerns on this matter are highly appreciated. >> >> *Note*: Please find this [6] forum discussion I've initiated at >> Kubernetes Storage Special Interest Group [7]. >> >> [1]: https://github.com/wso2/kubernetes-ei >> [2]: Mail thread with subject "[Architecture] [Deployment] [Containers] >> An update to WSO2 product Dockerfile generalization" >> [3]: https://kubernetes-v1-4.github.io/docs/user-guide/configmap/ >> [4]: https://groups.google.com/forum/#!topic/kubernetes-users/h_FRSr5wW00 >> [5]: https://kubernetes.io/blog/2017/03/dynamic-provisioning-and- >> storage-classes-kubernetes >> [6]: https://groups.google.com/forum/#!topic/kubernetes-sig-stora >> ge/qhd2HFd7nbg >> [7]: https://github.com/kubernetes/community/tree/master/sig-storage >> >> -- >> Yours sincerely, >> >> *Chiranga Alwis* >> Software Engineer | WSO2 >> >> *Mobile : *+94775930497 >> *Email: *[email protected] >> *LinkedIn: *https://lk.linkedin.com/in/chiranga-alwis-391342a9 >> *Medium:* https://medium.com/@chirangaalwis >> >> <http://wso2.com/signature> >> >> _______________________________________________ >> Dev mailing list >> [email protected] >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > *Imesh Gunaratne* > WSO2 Inc: http://wso2.com > T: +94 11 214 5345 M: +94 77 374 2057 > W: https://medium.com/@imesh TW: @imesh > lean. enterprise. middleware > > -- Yours sincerely, *Chiranga Alwis* Software Engineer | WSO2 *Mobile : *+94775930497 *Email: *[email protected] *LinkedIn: *https://lk.linkedin.com/in/chiranga-alwis-391342a9 *Medium:* https://medium.com/@chirangaalwis <http://wso2.com/signature>
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
