[COMMON][ETCD] Skip startup self-discovery for etcd nodes 13/117013/1 frankfurt
authorKonrad Bańka <k.banka@samsung.com>
Mon, 25 Jan 2021 06:44:49 +0000 (07:44 +0100)
committerKonrad Ba?ka <k.banka@samsung.com>
Tue, 26 Jan 2021 12:20:34 +0000 (12:20 +0000)
commitee6adc26d171a2a005955f7e6a65f5d3af8c04df
tree2e1169a8e84cf4d384ccfd2824162137a7a5bfe4
parent755be6d61e2704f1f87281f1701c6747cf101260
[COMMON][ETCD] Skip startup self-discovery for etcd nodes

Current startup script of etcd checks whether all assumed other nodes
are already running, before proceeding. This check, however, also
includes checking localhost, but due to using headless service
statefulset pod DNS discovery, it doesnt succeed immediately.
In some deployments k8s DNS server may be laggy, thus failing startup
script to finish before liveness check. This patch fixes such failures
of 1 pod etcd clusters, and improves startup time for any size ones.

Signed-off-by: Konrad Bańka <k.banka@samsung.com>
Issue-ID: OOM-2668
Change-Id: I2f9263a0f4964b0a495631775d0cbbceef25e85b
kubernetes/common/etcd/templates/statefulset.yaml