<p>So I am unable to Launch a <strong>custom task application</strong> stored in a <strong>private docker repo</strong>. All my docker images in Kubernetes come are pulled from this private repo. So the <strong>imagePullSecrets</strong> works fine but it seems it is not being used by Spring Cloud Dataflow when deploying the task to Kubernetes. If I inspect the pod there is no imagepullSecret set.</p>

<p>The error I get is:</p>

<p>xxxxx- no basic auth credentials
<a href="https://i.stack.imgur.com/9kXGS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9kXGS.png" alt="enter image description here"></a></p>

<p>The server has been deployed with the ENV variable which the guide states will fix this</p>

<pre><code>    - name: SPRING_CLOUD_DEPLOYER_KUBERNETES_IMAGE_PULL_SECRET
      value: regcred
</code></pre>

<p>I have even tried to add custom properties on a per-application bases</p>

<p>I have read through the guide <a href="https://docs.spring.io/spring-cloud-dataflow-server-kubernetes/docs/current-SNAPSHOT/reference/htmlsingle/#_private_docker_registry" rel="nofollow noreferrer">HERE</a></p>

<p>I am running the following versions:</p>

<p>Kubernetes 1.15 &amp;</p>

<p><a href="https://i.stack.imgur.com/cEK6P.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cEK6P.png" alt="enter image description here"></a></p>

<p>I have been stuck on this issue for weeks and simply can't find a solution. I'm hoping somebody has seen this issue and managed to solve it before?</p>

<p>Is there something else I'm missing?</p>

Keith
<p>Using the environment variable <code>SPRING_CLOUD_DEPLOYER_KUBERNETES_IMAGE_PULL_SECRET</code> also didnt work for me.</p>
<p>An alternative that made it work in my case is adding the following to the <code>application.yaml</code> of the SCDF Server in Kubernetes:</p>
application.yaml
<pre class="lang-yaml prettyprint-override"><code>spring:
  cloud:
    dataflow:
      task:
        platform:
          kubernetes:
            accounts:
              default:
                imagePullSecret: &lt;your_secret&gt;
</code></pre>
<p>or, when you are using a custom SCDF image like i do, you can of course specify it as argument:</p>
deployment.yaml
<pre class="lang-yaml prettyprint-override"><code>[...]
command: [&quot;java&quot;, &quot;-jar&quot;, &quot;spring-cloud-dataflow-server.jar&quot;]
args:
  - --spring.cloud.dataflow.task.platform.kubernetes.accounts.default.imagePullSecret=&lt;your_secret&gt;
[...]
</code></pre>
<p>More details on <a href="https://docs.spring.io/spring-cloud-dataflow/docs/current/reference/htmlsingle/" rel="nofollow noreferrer">https://docs.spring.io/spring-cloud-dataflow/docs/current/reference/htmlsingle/</a></p>
