From fbbb4ebeca58d391f814cf1790362e6e5d15385f Mon Sep 17 00:00:00 2001 From: Matt Matejczyk Date: Wed, 11 Sep 2019 13:56:59 +0200 Subject: [PATCH] Expose etcd metric port in tests This is to allow scraping etcd metrics in scalabiblity tests. This was already done in https://github.com/kubernetes/kubernetes/pull/77657, but then the logic got changed when introducing mtls in https://github.com/kubernetes/kubernetes/pull/77561 and the new etcd metric port 2382 is currently only exposed on localhost. Ref. https://github.com/kubernetes/perf-tests/issues/786 --- cluster/gce/gci/configure-helper.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cluster/gce/gci/configure-helper.sh b/cluster/gce/gci/configure-helper.sh index b64da4b6255..14577f8fa2f 100644 --- a/cluster/gce/gci/configure-helper.sh +++ b/cluster/gce/gci/configure-helper.sh @@ -1542,7 +1542,7 @@ function prepare-etcd-manifest { etcd_apiserver_creds=" --client-cert-auth --trusted-ca-file ${ETCD_APISERVER_CA_CERT_PATH} --cert-file ${ETCD_APISERVER_SERVER_CERT_PATH} --key-file ${ETCD_APISERVER_SERVER_KEY_PATH} " etcd_apiserver_protocol="https" etcd_livenessprobe_port="2382" - etcd_extra_args+=" --listen-metrics-urls=http://127.0.0.1:${etcd_livenessprobe_port} " + etcd_extra_args+=" --listen-metrics-urls=http://${ETCD_LISTEN_CLIENT_IP:-127.0.0.1}:${etcd_livenessprobe_port} " fi for host in $(echo "${INITIAL_ETCD_CLUSTER:-${host_name}}" | tr "," "\n"); do