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 upOpenShift Pod Service Discovery for restricted serviceaccount #2127
Comments
This comment has been minimized.
This comment has been minimized.
|
Dupe of #1951 |
brian-brazil
closed this
Oct 27, 2016
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 24, 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 24, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
nsams commentedOct 27, 2016
Kubernetes SD uses the /api/v1/pods API to get a list of all pods in the cluster.
When using OpenShift with a restricted serviceaccount that can only access configured namespaces this API isn't allowed, instead you can:
/oapi/v1/projects/api/v1/namespaces/example/podsThis would allow using prometheus in such a environment where you don't have access to the whole cluster.