Issue
While running kubernetes discovery the below error can be seen in discovery logs:
User \“system:anonymous\” cannot get v1 at the cluster scope”,“reason”:“Forbidden”,“details”:{“name”:“namespaces”,“kind”:“v1”},“code”:403}
Release
All
Cause
OpenShift kubernetes does not support basic authentication. A Bearer Token is required for Authentication.
https://docs.openshift.com/container-platform/4.10/rest_api/index.html
Resolution
Kubernetes credentials need to be configured with bearer token option:
Related Links
If after configuring the credentials and Kubernetes Discovery completes successfully without discovering the Nodes with pattern steps error "Invalid username/password combo", please review this KB: KB0994019