Problem
- We want to reuse the same image
- We have different static files (e.g. css) that should vary among different deployments. The folder-structure of these files should be preserved.
e.g:
- test1.xml
- test2.xml
- layout
- 3.1 test1.css
- 3.1 test2.css
We need to put those files once (at startup) into the Pod.
As far as I know, I can only create one ConfigMap of all files in one directory-level and a I have to recreate the structure.
e.g.
kubectl create configmap style-files --from-file=.
In our example above, this command would only create a ConfigMap for the xml-files.
Expected Behaviour
Something that behaves like a ConfigMap, but is able to create a single ConfigMap that contains all files in the current directory and all files of the subdirectory while preserving the folder structure.
Question
Is there some concept that is made for my use case or do I have to use ConfigMaps?