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

Reply via email to