How to share storage between Kubernetes pods?

后端 未结 10 1698
轻奢々
轻奢々 2020-12-01 02:51

I am evaluating Kubernetes as a platform for our new application. For now, it looks all very exciting! However, I’m running into a problem: I’m hosting my cluster on GCE an

10条回答
  •  没有蜡笔的小新
    2020-12-01 03:12

    @Marco - in regards to the Maven related question my advice would be to stop looking at this as a centralized storage problem and perhaps think of it as a service issue.

    I've run Maven repositories under HTTP in the past (read-only). I would simply create a Maven repo and expose it over Apache/Nginx in its own pod (docker container) with what ever dedicated storage you need for just that pod and then use service discovery to link it to your application and build systems.

提交回复
热议问题