That sounds right. Do you have the right permissions in that service
account? List pods at least

On Tue, Dec 11, 2018, 07:58 <andretmca...@gmail.com> wrote:

> Hi Carlos,
>
> Thank you for your response. Could you elaborate a bit more, like giving
> me an example?
>
> Like I said before, I couldn't get it to work. I just pasted the token
> after base64 decoding it. I receive a 401 while doing a curl with the same
> token value works properly.
>
> Thank you very much for your fast response.
>
> Regards
>
> terça-feira, 11 de Dezembro de 2018 às 15:55:11 UTC, Carlos Sanchez
> escreveu:
>>
>> secret text it is
>>
>> On Tue, Dec 11, 2018 at 7:49 AM <andret...@gmail.com> wrote:
>>
>>> Hello all,
>>>
>>> I'm having issues with the Kubernetes Plugin:
>>> https://github.com/jenkinsci/kubernetes-plugin
>>>
>>> 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.
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Jenkins Users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to jenkinsci-use...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jenkinsci-users/790b111c-5f60-4317-8628-18ef1b6fcf19%40googlegroups.com
>>> <https://groups.google.com/d/msgid/jenkinsci-users/790b111c-5f60-4317-8628-18ef1b6fcf19%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/57f90dec-e266-46f3-aa13-dacefc59c7ed%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/57f90dec-e266-46f3-aa13-dacefc59c7ed%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CALHFn6Mf9%2B1cvMy4gedN5mwUfO2QY8LUJxtvZ%3D7bqQOtgPWKHQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to