oc serviceaccount get-token

Is a little easier for scripting

On May 11, 2018, at 10:49 PM, Mohamed Lrhazi <lrh...@cua.edu> wrote:

I got it ! Thanks!

» oc describe secret robot-token-6w99j


On Fri, May 11, 2018 at 10:38 PM, Mohamed Lrhazi <lrh...@cua.edu> wrote:

> One more quick question ;)
>
> I created a service acount, how do I get the password or token I would use
> in docker to pull images?
>
> » oc describe sa robot
> Name:                robot
> Namespace:           saml-idp-server
> Labels:              <none>
> Annotations:         <none>
> Image pull secrets:  robot-dockercfg-k7dqm
> Mountable secrets:   robot-token-7scfm
>                      robot-dockercfg-k7dqm
> Tokens:              robot-token-6w99j
>                      robot-token-7scfm
> Events:              <none>
>
> Thank you so much.
>
>
> On Fri, May 11, 2018 at 10:25 PM, Mohamed Lrhazi <lrh...@cua.edu> wrote:
>
>> Thanks Ben!
>>
>>
>>
>> On Fri, May 11, 2018 at 10:16 PM, Ben Parees <bpar...@redhat.com> wrote:
>>
>>>
>>>
>>>
>>>
>>> On Fri, May 11, 2018, 22:11 Mohamed Lrhazi <lrh...@cua.edu> wrote:
>>>
>>>> Hello,
>>>>
>>>> The registry requires token based authentication which seems to be an
>>>> expiring token.
>>>> How would I access docker images remotely, from a cronjob task? Is
>>>> there a way to make an image publicly available? or a way to get a
>>>> permanent token?
>>>>
>>>
>>> Service account tokens don't expire, create a service account and use
>>> its token.
>>>
>>>
>>>> https://docs.openshift.org/latest/install_config/registry/ac
>>>> cessing_registry.html#access-user-prerequisites
>>>>
>>>> --
>>>> Thanks,
>>>> Mohamed.
>>>> _______________________________________________
>>>> users mailing list
>>>> users@lists.openshift.redhat.com
>>>> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>>>>
>>>
>>
>>
>> --
>> Thanks,
>> Mohamed.
>>
>
>
>
> --
> Thanks,
> Mohamed.
>



-- 
Thanks,
Mohamed.

_______________________________________________
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users
_______________________________________________
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users

Reply via email to