Please refer to the above image, I am trying to access Kubernetes Clusters Using the Kubernetes API and for that purpose as mentioned in documents I am using Python Kuberentes Client, that needs a token to communicate with Kube API
.
When I am trying to authenticate the user with the token added in Kube-config
file by Kube login everything works fine, where token provided by Keycloak
REST API results in an un-authorization error.
I would be glad if anyone could provide any insight on this issue.
We have resolved the issue, below are our findings and their resolution: