Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upscheme: http,it is invalid #4189
Comments
This comment has been minimized.
This comment has been minimized.
|
You shared a password in your report, I have edited it out however I strongly recommend rotating this password. These are invalid configuration file, it should be rejected by Prometheus. It makes more sense to ask questions like this on the prometheus-users mailing list rather than in a GitHub issue, and include the exact configuration files including exact indentation. On the mailing list, more people are available to potentially respond to your question, and the whole community can benefit from the answers provided. |
brian-brazil
closed this
May 24, 2018
This comment has been minimized.
This comment has been minimized.
|
Okay,thank you |
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 22, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
LionKiss commentedMay 24, 2018
•
edited by brian-brazil
In the original
scheme: https
kubernetes_sd_configs:
scheme: http
tls_config:
ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
relabel_configs:
action: keep
regex: default;kubernetes;https
I modified it according to requirements:
scheme: http
kubernetes_sd_configs:
tls_config:
ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
relabel_configs:
action: keep
regex: default;kubernetes;http
Still is https request
kubernetes.go:268: Failed to list *v1.Endpoints: Get https://172.16.2.123:8080/api/v1/endpoints?resourceVersion=0: net/http: invalid header field value "Bearer XXXXXX\n" for key Authorization"