<p>I have a kind:deployment file, and they are forcing the image to be defined down here in the &quot;initContainers&quot;, but I can't get my image in my own registry to load. If I try to put</p>
<pre><code>  imagePullSecrets:
  - name: regcred
</code></pre>
<p>in line with the &quot;image&quot; down below, I get <code>error converting YAML to JSON: yaml: found character that cannot start any token</code>. And I get the same thing if I move it around to different spots. Any ideas how I can use imagePullCreds here?</p>
<pre><code>spec:
  template:
    metadata:
    spec:
      initContainers:
      - env:
        - name: &quot;BOOTSTRAP_DIRECTORY&quot;
          value: &quot;/bootstrap-data&quot;
        image: &quot;my-custom-registry.com/my-image:1.6.24-SNAPSHOT&quot;
        imagePullPolicy: &quot;Always&quot;
        name: &quot;bootstrap&quot;
</code></pre>

Mike K.
<p>Check if you are using tabs for indentation; YAML doesn't allow tabs; it requires spaces.</p>
<p>Also, You should use imagePullSecrets under spec instead of under containers.</p>
<pre><code>spec:
  template:
    metadata:
    spec:
      imagePullSecrets:
      - name: regcred
      initContainers:
</code></pre>
