From 6666255261c70ce90d7f01d6cf28106856f2adbd Mon Sep 17 00:00:00 2001 From: kongfei Date: Sun, 17 Jul 2022 15:09:23 +0800 Subject: [PATCH] fix scrape_with_token yaml --- k8s/scrape_with_token.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/k8s/scrape_with_token.yaml b/k8s/scrape_with_token.yaml index efaf617..b42f389 100644 --- a/k8s/scrape_with_token.yaml +++ b/k8s/scrape_with_token.yaml @@ -11,7 +11,7 @@ scrape_configs: metrics_path: "/metrics" kubernetes_sd_configs: - role: endpoints - # apiserver lvs address or service ip:port eg, https://172.31.0.1:443 + # apiserver lvs address or service ip:port eg. https://172.31.0.1:443 api_server: "https://${KUBERNETES_SERVICE_HOST}:${KUBERNETES_SERVICE_PORT_HTTPS}" bearer_token_file: /path/to/token tls_config: @@ -33,10 +33,10 @@ scrape_configs: metrics_path: "/metrics" kubernetes_sd_configs: - role: endpoints - # apiserver lvs address or service ip:port eg, https://172.31.0.1:443 + # apiserver lvs address or service ip:port eg. https://172.31.0.1:443 api_server: "https://${KUBERNETES_SERVICE_HOST}:${KUBERNETES_SERVICE_PORT_HTTPS}" + bearer_token_file: /path/to/token tls_config: - bearer_token_file: /path/to/token insecure_skip_verify: true scheme: http relabel_configs: