Skip to content

Commit fbbb4eb

Browse files
committed
Expose etcd metric port in tests
This is to allow scraping etcd metrics in scalabiblity tests. This was already done in kubernetes#77657, but then the logic got changed when introducing mtls in kubernetes#77561 and the new etcd metric port 2382 is currently only exposed on localhost. Ref. kubernetes/perf-tests#786
1 parent 7e906ae commit fbbb4eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cluster/gce/gci/configure-helper.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1542,7 +1542,7 @@ function prepare-etcd-manifest {
15421542
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} "
15431543
etcd_apiserver_protocol="https"
15441544
etcd_livenessprobe_port="2382"
1545-
etcd_extra_args+=" --listen-metrics-urls=http://127.0.0.1:${etcd_livenessprobe_port} "
1545+
etcd_extra_args+=" --listen-metrics-urls=http://${ETCD_LISTEN_CLIENT_IP:-127.0.0.1}:${etcd_livenessprobe_port} "
15461546
fi
15471547

15481548
for host in $(echo "${INITIAL_ETCD_CLUSTER:-${host_name}}" | tr "," "\n"); do

0 commit comments

Comments
 (0)