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 upkuernetes_sd_configs kubernetes-nodes server returned HTTP status 403 Forbidden #4379
Comments
This comment has been minimized.
This comment has been minimized.
|
You need to pass the correct authentication parameters at the top-level too. - job_name: 'kubernetes-nodes'
scheme: https
# Used by Prometheus when scraping the targets.
tls_config:
ca_file: /opt/prometheus-2.2.1.linux-amd64/kubernetes/ca.crt
bearer_token_file: /opt/prometheus-2.2.1.linux-amd64/kubernetes/token
kubernetes_sd_configs:
- role: node
api_server: "https://api_server_ip:6443"
# Used by Prometheus for service discovery.
tls_config:
ca_file: /opt/prometheus-2.2.1.linux-amd64/kubernetes/ca.crt
bearer_token_file: /opt/prometheus-2.2.1.linux-amd64/kubernetes/token
...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
Jul 13, 2018
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. |
lock
bot
locked and limited conversation to collaborators
Mar 22, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
xikunyang commentedJul 13, 2018
•
edited
I configure prometheus for kubernetes, but I suffer an error on kubernetes-nodes.

My prometheus.yml:
The rbac clusterrole for prometheus:
prometheus.log doesn't show any relate error message.
I test curl , it return metrics success:
Any help is appreciate!