summaryrefslogtreecommitdiffstats
path: root/kubernetes
diff options
context:
space:
mode:
authorKrzysztof Opasiak <k.opasiak@samsung.com>2021-02-02 17:00:20 +0000
committerGerrit Code Review <gerrit@onap.org>2021-02-02 17:00:20 +0000
commit2c884a5eb4411f1579e99c51e4f013a7b5c1f8ae (patch)
treead0b7bee82613cb2198f2783336dcb522ff43455 /kubernetes
parenta92e91d641305c96ccfea06d0c5e9c0d8f4c0fcc (diff)
parente1d62ce450daaba624e5ff73fec4dbafd1af8b89 (diff)
Merge "[COMMON][ETCD] Skip startup self-discovery for etcd nodes"
Diffstat (limited to 'kubernetes')
-rw-r--r--kubernetes/common/etcd/templates/statefulset.yaml4
1 files changed, 4 insertions, 0 deletions
diff --git a/kubernetes/common/etcd/templates/statefulset.yaml b/kubernetes/common/etcd/templates/statefulset.yaml
index f5592bd252..e39b8c4ca2 100644
--- a/kubernetes/common/etcd/templates/statefulset.yaml
+++ b/kubernetes/common/etcd/templates/statefulset.yaml
@@ -133,6 +133,10 @@ spec:
# we should wait for other pods to be up before trying to join
# otherwise we got "no such host" errors when trying to resolve other members
for i in $(seq 0 $((${INITIAL_CLUSTER_SIZE} - 1))); do
+ if [ "${SET_NAME}-${i}" == "${HOSTNAME}" ]; then
+ echo "Skipping self-checking"
+ continue
+ fi
while true; do
echo "Waiting for ${SET_NAME}-${i}.${SERVICE_NAME} to come up"
ping -W 1 -c 1 ${SET_NAME}-${i}.${SERVICE_NAME} > /dev/null && break