The option 2 seems clearer. we can add it first. Create an issue about the option `1`, it can be a todo feature for APISIX. Implement it later.
On Sat, Oct 10, 2020 at 11:52 AM dabue <[email protected]> wrote: > I prefer option 2 . > > > > [email protected] > > From: Li Ling(Lien) > Date: 2020-10-10 11:16 > To: dev > Subject: [discuss] retry etcd host in the init_etcd phase when deploy in > k8s > Hello, dev, > recently I am working on installing APISIX via helm chart into K8S with > etcd as dependent. > Due to the mechanism of in-house DNS,after the etcd pod is ready,it > would take some time (usually 5~10 seconds)before the internal domain can > be correctly resolved. > > here comes two ideas to solve this problem: > 1、add a wait_etcd phase before init_etcd, to check if the etcd is live or > not. > which means will need to change the code in /bin/apisix > 2、change deployment.yaml of helm, add initContainers command to it. > > what do you think? > > > Thanks, > Lien Li > -- *MembPhis* My GitHub: https://github.com/membphis Apache APISIX: https://github.com/apache/incubator-apisix
