I have a spring cloud dataflow server deployed on kubernetes cluster(not a local scdf server run from jar). Since it requires Docker images to register the apps, but my private docker repository would need credentials to pass the authentication. Does anyone know on which configuration item/file shall I put my private docker repository credentials?
Thanks a lot!
There's no special handling required from SCDF perspective.
As far as the Kubernetes cluster and from within the backing VMs, if the Docker Deamon is logged into the private registry, at the event of app-resolution, SCDF will run it on the same Docker Deamon, so everything should work automatically.
In other words, it is a setup configuration between the Kubernetes cluster and private registry - nothing specific to SCDF.
For example, PKS and Harbor integration comes out of the box with this setup.
EDIT
If the above setup didn't work, there's the option to create Secret
in Kubernetes, which can be used to generate a secret for the private registry - see docs here.
Once you've that configured, you can then pass to SCDF via spring.cloud.deployer.kubernetes.imagePullSecret
property. Going by the above example in the Kubernetes docs, the value for this property would be regcred
.