Похожие чаты

Hey folks, without getting too deep into the why of

it, I'm wondering, is there a way to execute a command across a bunch of running pods, essentially trigger an exec or push a command that does that?

4 ответов

10 просмотров

Sounds like a service discovery/service registry issue. If your pods is registering to a register, at any time you can query the registry to get the target and execute the command against the target: https://d2iq.com/blog/networking-docker-containers-part-ii-service-discovery-traditional-apps-microservices

Dan-Y Автор вопроса
Sharuzzaman Ahmat Raslan
Sounds like a service discovery/service registry i...

wouldn’t this registry be the kube-api in case of k8s?

Dan-Y Автор вопроса
Sharuzzaman Ahmat Raslan
Sounds like a service discovery/service registry i...

looks like I'll simply write a small listener that will expose a port and when triggered execute the command. Also switch to statefulsets instead of deployments, so I can address each pod directly, instead of through a regular service.

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

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

Какие дистрибутивы Linux чаще всего работают в качестве серверов и почему?
Alex
27
Такс, блин, таки кто-то знает, каким образом работают макросы stdin/stdout/stderr? Я влез в stdio.h, там определения нет, отладил через асмокод - вызывается функция со странны...
The Bird of Hermes
18
Ребят, привет! Я портируюсь с войда на генту Читаю гентувики В разделе про разбивку диска указана xfs файловая система, а не ext4, как обычно Xfs имеет какие-то преимущества ...
Андрей Дыбов
21
А кто-то пробовал, уезжая из Эстонии получить э-рез и продолжить вести предпринимательскую деятельность внутри Эстонии, используя свой OÜ?
Lalalashechki Lalala
62
я не магистр хаскеля, но разве не может лейзи тип конвертнуться в не-лейзи запросив вычисление содержимого прям при инициализации?
deadgnom32 λ madao
100
Lol is just wrote a long text about tokenomics etc and it was directly deleted, no curses or similar so i write it again in shorter. Hey Ben 600m eco system tokens, around 30...
. Duss
3
can anyone here tell me the exact liqudation % when i supplied 100 usdt and borrowed bnb with borrow limit used 66.21 % ? usually bnb borrow limit is 80% and i guess 85 ...
jacky chan
9
Is Kadena onto something special? No one really knows. Good luck!
Bright Uncle Stephen EqualBet
40
Всем привет, на линуксе лучше на fasm или nasm учиться писать для начала ?
meszjol
14
I'm new at Monero and I'd like to ask you all - why are you in Monero? I know about privacy but what do you expect to happen in the next years, decades that Monero will make i...
Konrad
19
Карта сайта