diff --git a/README.md b/README.md index 993a9bdb1..7ad8eaa94 100644 --- a/README.md +++ b/README.md @@ -407,17 +407,20 @@ Starting from the kube-state-metrics chart `v2.13.3` (kube-state-metrics image ` #### Development -When developing, test a metric dump against your local Kubernetes cluster by -running: +When developing, test a metric dump against your local Kubernetes cluster by running: > Users can override the apiserver address in KUBE-CONFIG file with `--apiserver` command line. - go install - kube-state-metrics --port=8080 --telemetry-port=8081 --kubeconfig= --apiserver= +``` +go install +kube-state-metrics --port=8080 --telemetry-port=8081 --kubeconfig= --apiserver= +``` Then curl the metrics endpoint - curl localhost:8080/metrics +``` +curl localhost:8080/metrics +``` To run the e2e tests locally see the documentation in [tests/README.md](./tests/README.md). diff --git a/README.md.tpl b/README.md.tpl index a41d8bdc1..4faa67be7 100644 --- a/README.md.tpl +++ b/README.md.tpl @@ -408,17 +408,20 @@ Starting from the kube-state-metrics chart `v2.13.3` (kube-state-metrics image ` #### Development -When developing, test a metric dump against your local Kubernetes cluster by -running: +When developing, test a metric dump against your local Kubernetes cluster by running: > Users can override the apiserver address in KUBE-CONFIG file with `--apiserver` command line. - go install - kube-state-metrics --port=8080 --telemetry-port=8081 --kubeconfig= --apiserver= +``` +go install +kube-state-metrics --port=8080 --telemetry-port=8081 --kubeconfig= --apiserver= +``` Then curl the metrics endpoint - curl localhost:8080/metrics +``` +curl localhost:8080/metrics +``` To run the e2e tests locally see the documentation in [tests/README.md](./tests/README.md).