I created a StatefulSet service (yb-master) with 3 pods (yb-master-0,1,2). The cname of the headless service seems to list the pods that are currently running, so right when my processes start, they are not able to resolve the addresses of the others (I am using podManagementPolicy: “Parallel”). But to establish quorum, I need to wait for all the pods to come up before trying to leader elect.
In the above scenario, is there some mechanism to wait for all the pods to come up before starting any of the processes?
I did not find the right solution from the internet