Hello all,
I configured it successfully with Minikube, but once I moved to a real cluster, I couldn't make it work. The plugin documentation assumes we are deploying the Jenkins master in the same K8S cluster, which is not my case. Jenkins is on another environment, not even in K8S.
I created a service account for the namespace I am trying to use. I can do a CURL and use the header "Authorization: Bearer TOKEN". It works correctly, so the K8S namespace is ok. But I can't get it to work with Jenkins.
Which type of credential should I use? I tried basically every credential, including secret text, but I cannot get a successful connection. I always receive a:
Error testing connection https://<endpoint_was_replaced>: Failure executing: GET at: https://<endpoint_was_replaced>/api/v1/namespaces/team-release-management-automation-hackathon/pods. Message: Unauthorized. Received status: Status(apiVersion=v1, code=401, details=null, kind=Status, message=Unauthorized, metadata=ListMeta(_continue=null, resourceVersion=null, selfLink=null, additionalProperties={}), reason=Unauthorized, status=Failure, additionalProperties={}).
How can I use a service account and authenticate using a token?
Thank you very much.