Hi! Can ```flow.run_config = KubernetesRun(image="...
# ask-community
c
Hi! Can
Copy code
flow.run_config = KubernetesRun(image="example/image-name:with-tag")
be a remote image in a private repo?
j
Yes. The image is only accessed at runtime, not a flow registration time.
Provided your k8s cluster has access to run this image, everything should work fine.
c
As a followup question: when I remove storage= and just try to pass a KubernetesRun, the task gets tagged as local on the way out
Is that indicating it has defaulted back to a local agent?
j
Yes.
Local
is the default storage type, if you're running on k8s you'll need to specify a different storage type.
c
And registry_url for storage= is where i'd be setting where that goes, correct?
j
If you're using
Docker
storage, then yes. It's fairly common to store your flow external to the image you're using though, so a different storage option may be better suited for you. See https://docs.prefect.io/orchestration/flow_config/docker.html for more info.
🙌 1