Is there also a way in k8s that when an event occurs (IE a new container is launched in
a
pod) that a program can be called in existing containers? (This way we can automate
replica addition/removal)
What I'm planning to do is to use readiness probes, which can be scripts, to
handle dynamic configuration of replicas. I haven't seen any way that enables existing
containers to know when a new container has been launched or an old container deleted.
Regards,
Aravind G