# imagePullSecret is discarded when importing YAML thru webUI

**URL:** <https://forums.suse.com/t/imagepullsecret-is-discarded-when-importing-yaml-thru-webui/45118>\
**Category:** SUSE Rancher Prime\
**Created:** [February 11, 2025, 5:02pm UTC](https://forums.suse.com/t/imagepullsecret-is-discarded-when-importing-yaml-thru-webui/45118 "2025-02-11T17:02:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Jones](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/michael_jones/32/11799_2.png) [@Michael\_Jones](https://forums.suse.com/u/Michael_Jones)\
**Post date:** [February 11, 2025, 5:02pm UTC](https://forums.suse.com/t/imagepullsecret-is-discarded-when-importing-yaml-thru-webui/45118/1 "2025-02-11T17:02:44Z")

</div>

I am testing Rancher 2.8.5 for a client and am evaluating how private registries work. It a struggle so far. As far as I can determine:

1. Creating a pod thru kubectl, using --overrides functions result in "ErrImagePull "

kubectl run tester —namespace gratstats --image [quay.io/majonesservices/tester-pod:latest](http://quay.io/majonesservices/tester-pod:latest) restart=Never -it --rm – /bin/bash --overrides=‘{ “spec”: { “template”: { “spec”: { “imagePullSecrets”: [{“name”: “majonesservices-runforest2-pull-secret”}] } } } }’

1. Creating a POD by importing yaml thru the Rancher WebUI also results in ErrImagePull

apiVersion: v1  
kind: Pod  
metadata:  
name: tester  
namespace: gratstats  
spec:  
containers:  
- args:  
- bash  
- ‘-c’  
- read && su postgres  
image: [quay.io/majonesservices/tester-pod](http://quay.io/majonesservices/tester-pod)  
imagePullPolicy: Always  
imagePullSecret:  
- name: majonesservices-runforest2-pull-secret  
name: tester

When examining the resulting running / err POD YAML, the imagePullSecret reference is not listed.

Of course, if I make the image repo public, all is well! No authentication is needed

1. The ONLY way to leverage a private REPO is to use the WebUI and “CREATE” the POD using the config features:

 ![image1](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/0/0dfc4f59e58c4372f1626aef0f8071e460069450.jpeg)

SO, the big question is: My client will expect to leverage private repos in many different ways. Is it too much to ask a YAML import, containing a imagePullSecret tag from the UI to work?

Am I missing something??

Overall, as a developer, I typically like to spin up a pod to debug, I keep a private image with my favorite debug tools and will simply use kubectl to run it. /bin/bash shell into the running container to perform needed tests: nslookup, connect to other services to eval the network. So, it’s quite a pain to just not be able to do that unless my tools are public.
