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 upprometheus get kube-scheduler/kube-controller-manager metrics via https? #5154
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
This issue relates to the Prometheus operator rather than Proemtheus itself. I'm closing it for now. If you have further questions, please use our user mailing list, which you can also search. |
simonpasquier
closed this
Jan 30, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
szediktam commentedJan 30, 2019
Bug Report
What did you do?
I want to use prometheus-oprator to get metrics of kube-scheduler/kube-controller-manager via https.
I use certificate-authority-data, client-certificate-data and client-key-data in /etc/kubernetes/scheduler.conf to generate a secret. And use this secret to mount them into servicemonitor as caFile, certFile and keyFile.
And the endpoints is https://X.X.X.X:10259/metrics.
BUT, the kube-scheduler target generate a error:
Get https://X.X.X.X:10259/metrics: x509: certificate is valid for 127.0.0.1, not X.X.X.X
(X.X.X.X is host ip)
What did you expect to see?
the kube-scheduler target in prometheus is up, and no errors.
What did you see instead? Under which circumstances?
the kube-scheduler target generate a error:
Get https://X.X.X.X:10259/metrics: x509: certificate is valid for 127.0.0.1, not X.X.X.X
(X.X.X.X is host ip)
Environment
kubernetes v1.13.2
System information:
Linux 3.10.0-862.11.6.el7.x86_64 x86_64
Prometheus version:
prometheus, version 2.2.1 (branch: HEAD, revision:
bc6058c)
build user: root@149e5b3f0829
build date: 20180314-14:15:45
go version: go1.10
Alertmanager version:
Prometheus configuration file:
no error in prometheus log