Похожие чаты

Help! anyone knows how to share a volume between different

nodes/pods on kubernetes?

7 ответов

21 просмотр

RTFM

Raptor Blue Bear
RTFM

So helpful. Feeling cool now? good. At least provide a link to the docs you speak of.

This depends on what storage provider plugin you're using. Afaik it's kinda easier to share a volume if you have multiple containers in the same pod, instead of sharing it between multiple pods. Consider putting your services into the same pod _if their life-cycle is the same_. This is usually an anti-pattern though, and kinda hints at bad architecture, but I don't know more about your situation to judge. Cloud storage providers typically can't have the same volume mounted on multiple nodes, this means that if you want to mount the same volumeClaim on multiple pods you have to ensure the pods are all scheduled on the same node. Some storage providers _can_ handle multiple writers over the network, like the NFS one for example, but I don't have much experience with that.

Here's a tutorial on the multiple containers per-pod approach https://kubernetes.io/docs/tasks/access-application-cluster/communicate-containers-same-pod-shared-volume/

oh, and the stackoverflow answers here honestly explains things better than I did, so take a look https://stackoverflow.com/questions/31693529/how-to-share-storage-between-kubernetes-pods

D B X- Автор вопроса
Red, The Archivist
Here's a tutorial on the multiple containers per-p...

Thank you, yes between pods/containers i am able to share the files.. but when a new node is created by the autoscaling.. then i dont have access to files from that new node , so i think i need a nfs server or glusterfs someone said

D B X
Thank you, yes between pods/containers i am able t...

Maybe. Or again, consider whether putting the containers in the same pod is maybe right for you, or if you can replace the shared volume with some kind of a stand-alone database server instead, which would have its own separate life-cycle then.

Похожие вопросы

Обсуждают сегодня

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта