Skip to content

curl helloword service error:Recv failure: Connection reset by peer #744

@hzxuzhonghu

Description

@hzxuzhonghu

when create app helloword in local cluster

root@SZX1000353068:~/istio-0.2.1/samples/apps/helloworld# kubectl get svc helloworld
NAME         TYPE       CLUSTER-IP   EXTERNAL-IP   PORT(S)          AGE
helloworld   NodePort   10.0.0.111   <none>        5000:31858/TCP   16m

and I visit helloword

root@SZX1000353068:~/istio-0.2.1/samples/apps/helloworld# curl 127.0.0.1:5000/helloword
curl: (7) Failed to connect to 127.0.0.1 port 5000: Connection refused

I curl pod ip, the same error,
then I enter container, and curl 127.0.0.1:5000/helloword it works ok. But curl podIP:5000, still recv Connection refused.

I do not know what's the matter

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