Skip to content

Can't connect to server #2

Open
@kavemun

Description

@kavemun

Hi,

I am trying to run the example on the ReadMe. After updating the yaml to my image file, and sending a request from the client, I got the following error
$ python resnet_client.py --server localhost --port 9000 cat_sample.jpg Traceback (most recent call last): File "resnet_client.py", line 155, in <module> main() File "resnet_client.py", line 94, in main args.server, args.port, args.model, jpeg_batch) File "resnet_client.py", line 149, in predict_and_profile result = stub.Predict(request, 60.0) # 60 second timeout File "/Users/kahmun/tf-serving-k8s-tutorial/client/client/lib/python2.7/site-packages/grpc/beta/_client_adaptations.py", line 310, in __call__ self._request_serializer, self._response_deserializer) File "/Users/kahmun/tf-serving-k8s-tutorial/client/client/lib/python2.7/site-packages/grpc/beta/_client_adaptations.py", line 196, in _blocking_unary_unary raise _abortion_error(rpc_error_call) grpc.framework.interfaces.face.face.AbortionError: AbortionError(code=StatusCode.UNAVAILABLE, details="Connect Failed")

The external-IP for the LoadBalancer is

$ kubectl get svc NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 1h resnet-service LoadBalancer 10.101.188.76 <pending> 9000:31072/TCP 1h

I read that when running in minikube, i should use NodePort instead, but switching to NodePort returns the same error. Is there anything that I am still doing wrong?

Also I was using the Dockerfile which was deleted in a previous commit, I don't think that is the issue could it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions