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?
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
interesting approach, thanks
wouldn’t this registry be the kube-api in case of k8s?
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.
Обсуждают сегодня