# Can I use parameter "imagePullSecrets" to authen for pull image oneagent from private repository?

**URL:** <https://community.dynatrace.com/t/can-i-use-parameter-imagepullsecrets-to-authen-for-pull-image-oneagent-from-private-repository/20975>\
**Category:** Container platforms\
**Tags:** oneagent, kubernetes\
**Created:** [December 4, 2020, 3:51pm UTC](https://community.dynatrace.com/t/can-i-use-parameter-imagepullsecrets-to-authen-for-pull-image-oneagent-from-private-repository/20975 "2020-12-04T15:51:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AskMe-Solutions](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/askme-solutions/32/33154_2.png) [@AskMe-Solutions](https://community.dynatrace.com/u/AskMe-Solutions)\
**Post date:** [December 4, 2020, 3:51pm UTC](https://community.dynatrace.com/t/can-i-use-parameter-imagepullsecrets-to-authen-for-pull-image-oneagent-from-private-repository/20975/1 "2020-12-04T15:51:16Z")

</div>

Hello Everyone,

On my repository need to authentication for pull image. So in the file Cr.yaml I saw parameter “imagePullSecrets” can I use this parameter for authen?

![27574-1607097049242.png](https://global.discourse-cdn.com/dynatrace/original/2X/4/4884178e9468fe34f7ac2481ecc33635e5a4d84f.png)

Thanks In Advance,

---

<div class="post-metadata">

**Author:** ![luis\_garcia](https://avatars.discourse-cdn.com/v4/letter/l/f4b2a3/32.png) [@luis\_garcia](https://community.dynatrace.com/u/luis_garcia)\
**Post date:** [January 15, 2021, 11:53am UTC](https://community.dynatrace.com/t/can-i-use-parameter-imagepullsecrets-to-authen-for-pull-image-oneagent-from-private-repository/20975/2 "2021-01-15T11:53:40Z")

</div>

Hi,

We don’t have that field on the cr.yaml file. Nonetheless, you can modify the “dynatrace-oneagent” service account to include additional image pull secrets that will be used for the OneAgent Pods.

See documentation here: [Configure Service Accounts for Pods | Kubernetes](https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#add-imagepullsecrets-to-a-service-account)

Best regards,  
Luis
