Update etcd.sh to use v3 endpoint

This commit is contained in:
Jingyi Hu 2019-10-29 13:10:29 -07:00
parent 706cde51c5
commit ccf4caf30f

View File

@ -80,8 +80,8 @@ kube::etcd::start() {
ETCD_PID=$!
echo "Waiting for etcd to come up."
kube::util::wait_for_url "${KUBE_INTEGRATION_ETCD_URL}/v2/machines" "etcd: " 0.25 80
curl -fs -X PUT "${KUBE_INTEGRATION_ETCD_URL}/v2/keys/_test"
kube::util::wait_for_url "${KUBE_INTEGRATION_ETCD_URL}/health" "etcd: " 0.25 80
curl -fs -X POST "${KUBE_INTEGRATION_ETCD_URL}/v3/kv/put" -d '{"key": "X3Rlc3Q=", "value": ""}'
}
kube::etcd::stop() {