aiidalab / aiidalab/aiidalab-docker-stack

Setting up the home directory in Kubernetes

未关闭
#460 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
discussion
主要语言
Python
星标
10
派生
15
平均合并
1 天 18 小时
30 天内合并 PR
3

描述

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.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。