<p>There are several debugging tasks you should perform
check if you saved the pull secret correctly</p>
<pre><code>kubectl get secrets -n kube-fledged regcred
</code></pre>
<p>if the type is <code>kubernetes.io/dockerconfigjson</code> it's okay
after that, try to decode the secret and use it on your own machine to see if it pulls the image.</p>
<p>let us know if it helped you or you need further assistant :)</p>

CC BY-SA 4.0
2024-03-27T13:03:07.850Z
2024-03-27T13:03:07.850Z
Eladik
<pre class="lang-yaml prettyprint-override"><code>
apiVersion: kubefledged.io/v1alpha2
kind: ImageCache
metadata:
  name: imagecache1
  namespace: kube-fledged
  labels:
    app: kubefledged
    component: imagecache
spec:
  imagePullSecrets:
    - name: regcred
  cacheSpec:
  - images:
    - exampleregdev.azurecr.io/vm-images/sample-img-1:0.0.1
    - exampleregdev.azurecr.io/vm-images/sample-img-2:0.0.3
    - exampleregdev.azurecr.io/vm-images/sample-img-3:0.0.1
</code></pre>
<p>I am using aregred secret to pull images from a private registry. But I get an image ImagePullBackOff error. I have my regred in the kube-fledged namespace.</p>

<kubernetes><azure-devops><azure>
kube fleged imagePullSecrets not working(ImagePullBackOff)
sylvesterasa
# kube fleged imagePullSecrets not working(ImagePullBackOff)

(Asked by: username_0 on 2024-03-19)

apiVersion: kubefledged.io/v1alpha2
kind: ImageCache
metadata:
  name: imagecache1
  namespace: kube-fledged
  labels:
    app: kubefledged
    component: imagecache
spec:
  imagePullSecrets:
    - name: regcred
  cacheSpec:
  - images:
    - exampleregdev.azurecr.io/vm-images/sample-img-1:0.0.1
    - exampleregdev.azurecr.io/vm-images/sample-img-2:0.0.3
    - exampleregdev.azurecr.io/vm-images/sample-img-3:0.0.1

I am using aregred secret to pull images from a private registry. But I get an image ImagePullBackOff error. I have my regred in the kube-fledged namespace.

**Tags:** kubernetes, azure-devops, azure


---

## 1 answers

### Answer by username_1 on 2024-03-27. Score: 0

There are several debugging tasks you should perform
check if you saved the pull secret correctly
kubectl get secrets -n kube-fledged regcred

if the type is kubernetes.io/dockerconfigjson it's okay
after that, try to decode the secret and use it on your own machine to see if it pulls the image.
let us know if it helped you or you need further assistant :)


---

