I'd like to connect to a flyte-binary deployment i...
# flyte-deployment
I'd like to connect to a flyte-binary deployment in EKS. I am able to connect from my machine with the config endpoint
just fine, and connect with a
instance as well. I am having an issue when trying to connect from inside the EKS cluster, however, since using that endpoint would try to leave the cluster before returning (and the origin IP address is not on the load balancer allowlist).
My question is - can I connect to the flyte-binary from inside the EKS cluster, using one of the services? i.e.,
Copy code
NAME                                 TYPE        CLUSTER-IP       EXTERNAL-IP   PORT(S)    AGE
service/flyte-flyte-binary-grpc      ClusterIP    <none>        8089/TCP   28d
service/flyte-flyte-binary-http      ClusterIP     <none>        8088/TCP   28d
service/flyte-flyte-binary-webhook   ClusterIP   <none>        443/TCP    28d
If so, what would the FlyteRemote config look like, would it be an insecure connection?
Copy code
flyte_remote = FlyteRemote(
It's funny, I can get the http API with a curl request, using
Copy code
but the flytekit Remote does not seem to work, or I am not configuring properly.
confirm it works with flytectl?
I'm just guessing but, when accessing from outside through your k8s ingress controller I think it always uses port 80 for insecure or 443 for secure and the ingress will route it to the correct internal k8s service. When accessing from inside the cluster you might need to explicitly reference the correct k8s service and port? I would guess
(normally the k8s ingress does the SSL stuff).
@Cody Scandore I see you want to use Service Discovery. I also haven't tried it but I guess that
should at least lead you to the right ClusterIP Service