aiidalab / aiidalab/aiidalab-docker-stack

Setting up the home directory in Kubernetes

Đang mở
#460 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
discussion
Ngôn ngữ chính
Python
Star
10
Fork
15
Merge trung bình
1 ngày 18 giờ
Pull request đã merge (30 ngày)
3

Mô tả

Just as a followup to my question about how kubernetes mounts volume, indeed it doesn't seem possible to use overlay mount to preserve pre-existing files in the `/home/jovyan` directory in the image. I found this StackOverflow answer interesting. https://stackoverflow.com/a/63128564/3682277

> A common solution for your use-case is, to use an init container to set up the [emptyDir](https://kubernetes.io/docs/concepts/storage/volumes/#emptydir), before the main container is started. So basically you specify the emptyDir as a volume mount in both the init container and the main container and have the init container copy the files into the emptyDir.

Might be interesting to explore, in case you haven't already CC @unkcpz @superstar54

In any case, whatever solution you arrive at at the end, we should document it somewhere in this repo.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.