Suppose I have two deployments, D_a
and D_b
and they each have a replica of 1. Ideally this would get me two running pods P_a
and P_b
.
Now suppose both P_a
and P_b
contain gRPC services which periodically ping each other to establish their readinesss state.
I now have a circular dependency between the two and I will never be able to get them ready as each one of them won't be ready for the other one to become ready.
Is this an anti-pattern or perhaps I am completely missing the point of readiness probes?
How would I break this loop? Thank you in advance!