Currently I have an InitContainer that creates two directories.
initContainers:
- name: files-init
image: quay.io/quay/busybox
command:
- "/bin/mkdir"
args:
- "-p"
- "/files/test1"
- "/files/test2"
volumeMounts:
- mountPath: /files
name: files
Now it is only creating two directories, but in the future there will be more. And the readability will be going to be harder and also hard to manage. Is it possible to use an input file, with for example the name files.txt that has the following lines:
/files/test1
/files/test2
And that this will be read out with something like this?
command:
- "/bin/mkdir"
args:
- "-p $files.txt"
Anyone that can help me with this? Do I need to use ConfigMaps for this, if so how.