AcalephStorage / ceph-docker

Docker files and images to run Ceph in containers
Apache License 2.0
4 stars 2 forks source link

ConfigMap + Secrets #7

Open hunter opened 7 years ago

hunter commented 7 years ago

The current implementation of ceph-docker for k8s uses only Secrets. ConfigMaps are a better fit for the ceph.conf since it doesn't need to be encoded as base64 (and is readable/updatable).

The unfortunate issue with ConfigMaps and Secrets in K8s is that they each take over a whole directory.

The recommended workaround is using a init-container to preprocess the config/secrets by moving or linking them from a temp directories to the final /etc/ceph directory.

Time to test it out...