<div dir="ltr">Hey!<div><br></div><div>I&#39;m working on configuration management in cloud environment [1]. I put some finding in the ticket [1] but let me tell you more about the options I investigated:</div><div><ul><li>Kubernetes/OpenShift ConfigMaps [2][3]</li><ul><li>Those structures are specially designed to hold configuration data in any format (yaml, json, properties, xml, doesn&#39;t matter).</li><li>The configuration can be mounted into a pod as a directory (technically a volume). We can not mount it as a single file. Having said that we would need to either store cloud.xml file separately (standalone/cloud/configuration?) or ask users to build configuration from whole standalone/configuration directory. Both options are valid in my opinion.</li></ul><li>OpenShift S2I [4] builder</li><ul><li>S2I builder takes a git repository and a Docker image and combines those two together.</li><li>We could store a cloud.xml file inside a git repository and modify our infinispan Docker image to support S2I scripts (if cloud.xml is detected in a git repository - replace the default configuration).</li><li>Unfortunately it&#39;s OpenShift specific thing.</li></ul><li>Extend the Infinispan Docker image</li><ul><li>We could ask users to extend our Docker image and put their specific configuration there</li><li>The biggest advantage - it will work regardless to the environment (pure Docker, Kubernetes, OpenShift, doesn&#39;t matter)</li></ul></ul><div>All options require restarting pods to update configuration (remember, pods were designed to be immutable).<br></div><div><br></div><div>I think we should support 2 options - ConfigMaps for Kubernetes and OpenShift and extending our Docker image for all other use cases (because this option gives the most flexibility).</div></div><div><br></div><div>What do you think?</div><div><br></div><div>Thanks</div><div>Sebastian</div><div><br></div><div>[1] <a href="https://issues.jboss.org/browse/ISPN-6675">https://issues.jboss.org/browse/ISPN-6675</a></div><div>[2] <a href="http://kubernetes.io/docs/user-guide/configmap/">http://kubernetes.io/docs/user-guide/configmap/</a></div><div>[3] <a href="https://docs.openshift.org/latest/dev_guide/configmaps.html">https://docs.openshift.org/latest/dev_guide/configmaps.html</a></div><div>[4] <a href="https://github.com/openshift/source-to-image">https://github.com/openshift/source-to-image</a></div></div>