cold-terabyte-75414
03/10/2023, 7:17 AMFailed to establish a new connection: [Errno 8] nodename nor servname provided, or not known'))
Could anyone point me to sample config/setup on how to do this correctly?user
03/10/2023, 7:38 PMaccess all the services successfully from inside the cluster, do you mean accessing the Metaflow metadata service? It's possible that the metadata service was accessible only from within the cluster.
Also, can you share what you set as METAFLOW_SERVICE_URL ?cold-terabyte-75414
03/11/2023, 2:08 PMMETAFLOW_SERVICE_URL to "<http://prefix-metaflow-metadata-microservice-svc.namespace.svc.cluster.local>"
From within the EKS cluster I only set the following environment variables:
METAFLOW_DATASTORE_SYSROOT_S3="<s3://bucket/flows>"
METAFLOW_DEFAULT_METADATA="service"
METAFLOW_DATATOOLS_S3ROOT="<s3://bucket/data>"
METAFLOW_SERVICE_URL="<http://prefix-metaflow-metadata-microservice-svc.namespace.svc.cluster.local>"
METAFLOW_DEFAULT_DATASTORE="s3"
and I am able to access the meta data service/
When I set the exact same environment variables locally I land up with the connection error. We use cillium network policies and I have confirmed that no traffic is being blocked or dropped. I was hoping that maybe this is just a configuration error.user
03/12/2023, 5:29 PMprefix-metaflow-metadata-microservice-svc.namespace.svc.cluster.local is only accessible from within the EKS cluster.
There are two options to make this service accessible from your local laptop:
1. You can port-forward the service locally. See this for instructions. You can then set the METAFLOW_SERVICE_URL to <http://127.0.0.1>:<port-number> and run metaflow.
2. Create a loadbalancer for the service. See these instructions. This will give you a loadbalancer endpoint that you can set as the METAFLOW_SERVICE_URL and not have to worry about port-forwarding everytime. However, this option also has some security and cost implications. It will be a bit more involved to get this production ready.
I'd suggest starting with the port-forwarding option since it's safe and you can confirm that the system works end-to-end as expected.cold-terabyte-75414
03/13/2023, 5:49 AMuser
03/13/2023, 5:51 AMcold-terabyte-75414
03/13/2023, 5:58 AMcold-terabyte-75414
03/13/2023, 5:58 AM