Hello, Is it possible to use another than Docker ...
# ask-community
v
Hello, Is it possible to use another than Docker image repository in worker setup? The worker is K8 one. Our image repository is Azure Container Repository. How to pass Azure repository credentials in a worker setup in Prefect Web UI? We run different deployments with the same worker. The worker is created in advance and then we run flow run from deployments. Thanks.
j
Hi @Vitaly Saversky! The image repository you want to reference & authenticate to - is this for the worker image or for your deployment/flow images?
v
@Jamie Zieziula It's deployment/flow image. From field in worker setup in Web UI "Image (Optional) The image reference of a container image to use for created jobs. If not set, the latest Prefect image will be used."
j
got it - 1 sec!
under the
base job template
section of the workpool advanced configuration - you can define the image pull secret to reference that would contain your registry credentials:
under
job_configuration.job_manifest.spec.template.spec
you would add a new parameter:
Copy code
...  
  "job_configuration": {
    ...
    "job_manifest": {
      ...
      "spec": {
        "template": {
          "spec": {
            "imagePullSecrets": [
               {
                 "name": "your-secret-name"
                }
             ]
             ...
here's some more information around base job templates. let me know if that helps!
v
Thank you, @Jamie Zieziula, for your quick response! Some more question if you don't mind? What value is expected to be in "your-secret-name" field? Is it Kubernetes or Azure secret? Is it any Prefect block? I saw "imagePullSecrets" field in Argo orchestration software. Is it the same?
r
The base job template is what prefect uses to create the job pod in the kubernetes cluster. So, everything in there is relative to kubernetes
In this case, imagePullSecrets would list the kubernetes secrets that contain pull secrets for container registries.
v
Thank you, @Rob Rati, got it!
j
yep exactly! it should be the name of your k8s secret that stores your registry creds
❤️ 1