Похожие чаты

Help! anyone knows how to share a volume between different

nodes/pods on kubernetes?

7 ответов

12 просмотров

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.

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

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

30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
Also, why can’t the community have a vote/ say when it comes to initiatives like buybacks. Isn’t the point of crypto decentralisation? Don’t we deserve input as long term supp...
👨🏽‍🦰
13
Чёт не понял, я ж правильной функцией воспользовался чтобы вывести отладочную информацию? но что-то она не ловится
notme
18
Привет)) уже кажется эту тему перемусолили, но вот я так и не понял. Я сейчас сижу на 27дюймов 2к мониторе. На Актуальной макоси, если я куплю 27д 4к монитор: - будет ли изобр...
Vladislav Piskunov
15
any reference of this implementation?
BitBuddha
29
Hi guys, any problem with Pulsebrige? Trying to transfer from wETH to ETH. First it tells me to connect my metamask "through mobile app" not desktop. Then I did and confirmed ...
Snowflakecrypto
13
У меня есть функция где происходит это: write_bit(buffer, 1); write_bit(buffer, 0); write_bit(buffer, 1); write_bit(buffer, 1); write_bit(buffer, 1); w...
~
13
Страшнейшая правда про списки ЦБ. С первых дней жизни P2P сферы, молодые человеки, начитавшись законодательной базы и "внутренних" документов, решили, что им противостоит сер...
Foxcool
3
Карта сайта