On Tue, Apr 10, 2018 at 11:48 AM, Chiranga Alwis <chira...@wso2.com> wrote:
> Hi all,
> currently, I'm working on building Kubernetes resources for WSO2
> Enterprise Integrator .
> During this effort, I am attempting to utilize platform independent WSO2
> product Docker images  when deploying artifacts on Kubernetes platform.
> Here, we are required to pass on the set of files with configuration
> changes to the default Docker image file system, into a pod in order to
> make them available at the container startup.
> The most straightforward solution provided by Kubernetes platform for this
> purpose is using ConfigMaps . But it was experienced that it is not
> possible to build a Kubernetes ConfigMap from a folder recursively .
> Yes, this is a limitation at the moment. But IMO, I think we should stick
with config maps for configurations. We can use volumes for mounting
content such as jks, /lib, /dropins, etc. When you change a config, you
need to do restart the server to apply the changes. If we use the config
maps, you only need to update the config map and do the rolling update.
Currently there is an on going discussion to support config map rolling
> As the set of configuration files that need to be passed into the
> container is required to maintain the folder structure in this scenario, it
> was identified that using a persistent storage (containing the files with
> configuration changes) which could be shared among all the pods running
> containers from the specific Docker image is the best option to achieve the
> discussed goal.
> For this purpose, I tried using dynamic provisioning of persistent volumes
> But how can we pre-populate the dynamically provisioned persistent volume
> with the files with configuration changes?
> Your help, suggestions and concerns on this matter are highly appreciated.
> *Note*: Please find this  forum discussion I've initiated at
> Kubernetes Storage Special Interest Group .
> : https://github.com/wso2/kubernetes-ei
> : Mail thread with subject "[Architecture] [Deployment] [Containers] An
> update to WSO2 product Dockerfile generalization"
> : https://kubernetes-v1-4.github.io/docs/user-guide/configmap/
> : https://groups.google.com/forum/#!topic/kubernetes-users/h_FRSr5wW00
> : https://kubernetes.io/blog/2017/03/dynamic-provisioning-
> : https://groups.google.com/forum/#!topic/kubernetes-sig-
> : https://github.com/kubernetes/community/tree/master/sig-storage
 - https://github.com/kubernetes/kubernetes/issues/22368
Committer and PMC Member - Apache Stratos
Senior Software Engineer
WSO2, Inc.: http://wso2.com
mobile : +94774078049 <%2B94772207163>
Dev mailing list