# JNLP default image override at top level. Is it possible?

**URL:** <https://community.jenkins.io/t/jnlp-default-image-override-at-top-level-is-it-possible/1676>\
**Category:** Using Jenkins\
**Tags:** question\
**Created:** [March 1, 2022, 1:02pm UTC](https://community.jenkins.io/t/jnlp-default-image-override-at-top-level-is-it-possible/1676 "2022-03-01T13:02:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![snwbr](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/snwbr/32/1053_2.png) [@snwbr](https://community.jenkins.io/u/snwbr)\
**Post date:** [March 1, 2022, 1:02pm UTC](https://community.jenkins.io/t/jnlp-default-image-override-at-top-level-is-it-possible/1676/1 "2022-03-01T13:02:48Z")

</div>

Hello there! Hope you’re fine.

I’m trying to override the default jnlp container image (K8s plugin) and use pretty much the same image but in a private repository (Jenkins can’t access internet to retrieve the public image). I know I can override it in the `podTemplate` definition but I have tons of Jenkinsfiles and wouldn’t like to go over one by one doing so. Also each Jenkinsfile is using a random pod label so creating one pod template from the UI with a fixed label won’t work.

Is there any way to override default jnlp image at global/top level so that it affects every single pipeline run using the k8s plugin?

Many thanks!

---

<div class="post-metadata">

**Author:** ![snwbr](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/snwbr/32/1053_2.png) [@snwbr](https://community.jenkins.io/u/snwbr)\
**Post date:** [March 1, 2022, 3:15pm UTC](https://community.jenkins.io/t/jnlp-default-image-override-at-top-level-is-it-possible/1676/2 "2022-03-01T15:15:15Z")

</div>

I think I could somehow specify, at least, the default `dockerRegistryPrefix` used [here](https://github.com/jenkinsci/kubernetes-plugin/blob/21cc7cbed446a072c2f22436327a96b9a24e9a5f/src/main/java/org/csanchez/jenkins/plugins/kubernetes/PodTemplateBuilder.java#L106) so that the default jnlp image gets pulled from the internal repository. But can’t find where to do it either ☹
