Merge "Fix etcd race condition issue"

This commit is contained in:
Zuul 2018-07-11 10:32:38 +00:00 committed by Gerrit Code Review
commit fcf3709861
7 changed files with 17 additions and 10 deletions

View File

@ -456,7 +456,7 @@ if [ "$MASTER_INDEX" != "0" ]; then
exit 0
fi
until curl -sf "http://127.0.0.1:8080/healthz"
until [ "ok" = "$(curl --silent http://127.0.0.1:8080/healthz)" ]
do
echo "Waiting for Kubernetes API..."
sleep 5

View File

@ -255,7 +255,7 @@ if [ "$MASTER_INDEX" != "0" ]; then
fi
echo "Waiting for Kubernetes API..."
until curl --silent "http://127.0.0.1:8080/version"
until [ "ok" = "$(curl --silent http://127.0.0.1:8080/healthz)" ]
do
sleep 5
done

View File

@ -121,7 +121,7 @@ fi
# Binary for ingress traefik
INGRESS_TRAEFIK_BIN_CONTENT='''#!/bin/sh
until curl -sf "http://127.0.0.1:8080/healthz"
until [ "ok" = "$(curl --silent http://127.0.0.1:8080/healthz)" ]
do
echo "Waiting for Kubernetes API..."
sleep 5

View File

@ -369,7 +369,7 @@ GRAFANA_DEF_DASHBOARD_FILE=$GRAFANA_DEF_DASHBOARDS"/default.json"
# Write the binary for enable-monitoring
KUBE_MON_BIN_CONTENT='''#!/bin/sh
until curl -sf "http://127.0.0.1:8080/healthz"
until [ "ok" = "$(curl --silent http://127.0.0.1:8080/healthz)" ]
do
echo "Waiting for Kubernetes API..."
sleep 5

View File

@ -12,7 +12,7 @@ if [ "$MASTER_INDEX" != "0" ]; then
fi
echo "Waiting for Kubernetes API..."
until curl --silent "http://127.0.0.1:8080/version"
until [ "ok" = "$(curl --silent http://127.0.0.1:8080/healthz)" ]
do
sleep 5
done

View File

@ -335,8 +335,14 @@ spec:
EOF
}
if [ "$MASTER_INDEX" != "0" ]; then
exit 0
fi
echo "Waiting for Kubernetes API..."
until curl --silent "http://127.0.0.1:8080/version"
until [ "ok" = "$(curl --silent http://127.0.0.1:8080/healthz)" ]
do
sleep 5
done
@ -459,7 +465,7 @@ if [ "$MASTER_INDEX" != "0" ]; then
fi
echo "Waiting for Kubernetes API..."
until curl --silent "http://127.0.0.1:8080/version"
until [ "ok" = "$(curl --silent http://127.0.0.1:8080/healthz)" ]
do
sleep 5
done

View File

@ -13,7 +13,8 @@ WC_NOTIFY_SERVICE=/etc/systemd/system/wc-notify.service
cat > $WC_NOTIFY_BIN <<EOF
#!/bin/bash -v
until curl -sf "http://127.0.0.1:8080/healthz"; do
until [ "ok" = "$(curl --silent http://127.0.0.1:8080/healthz)" ]
do
echo "Waiting for Kubernetes API..."
sleep 5
done
@ -23,8 +24,8 @@ EOF
cat > $WC_NOTIFY_SERVICE <<EOF
[Unit]
Description=Notify Heat
After=docker.service etcd.service
Requires=docker.service etcd.service
After=docker.service
Requires=docker.service
[Service]
Type=oneshot
ExecStart=$WC_NOTIFY_BIN