great-egg-84692
08/06/2025, 4:49 PMMETAFLOW_SERVICE_URL
vs METAFLOW_SERVICE_INTERNAL_URL
?thankful-ambulance-42457
08/07/2025, 11:14 AMmetaflow configure kubernetes
Metaflow can use a remote Metadata Service to track and persist flow execution metadata.
Would you like to configure the Metadata Service? [Y/n]:
[METAFLOW_SERVICE_URL] URL for Metaflow Service.: <http://service.url.example.com|service.url.example.com>
[METAFLOW_SERVICE_INTERNAL_URL] (optional) URL for Metaflow Service (Accessible only within VPC [AWS] or a Kubernetes cluster [if the service runs in one]). [<http://service.url.example.com|service.url.example.com>]:
thankful-ambulance-42457
08/07/2025, 11:15 AMMETAFLOW_SERVICE_URL
)great-egg-84692
08/07/2025, 3:00 PMMETAFLOW_SERVICE_URL
, and it runs flows in k8s, it calls METAFLOW_SERVICE_INTERNAL_URL
.
Do you have insight into why there isn't similar a distinguishment for METAFLOW_S3_ENDPOINT_URL, given that when the user runs the flow locally or in k8s, it also needs to access diff urls, e.g. METAFLOW_S3_ENDPOINT_INTERNAL_URL
(which doesn't exist) would be only accessible within the k8s cluster.thankful-ambulance-42457
08/07/2025, 3:43 PMthankful-ambulance-42457
08/07/2025, 3:46 PMminio-secret
in the example gets hooked up to the pods by
metaflow_config["METAFLOW_KUBERNETES_SECRETS"] = "minio-secret"
which resides in the clients metaflow profile. Another benefit of having the secret reside on the K8S side and simply be referenced, instead of hardcoding it is that secrets can be rotated without having to redeploy scheduled flows.