尝试连接到Kubernetes中的订购者服务时连接被拒绝

时间:2019-07-09 22:33:33

标签: kubernetes hyperledger-fabric

我正在尝试使用minikube上github页面https://github.com/xmhubj/fabric-kafka上的Kafka brokers环境部署自动超级账本结构。执行创建通道作业时,出现以下错误消息:

UTC [grpc] Printf -> DEBU 004 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp 10.106.33.24:7050: getsockopt: connection refused"; Reconnecting to {orderer0.ordererorg1:7050 <nil>}
Error: failed to create deliver client: orderer client failed to connect to orderer0.ordererorg1:7050: failed to create new connection: context deadline exceeded

订购者正在作为服务运行

ordererorg1   orderer0               NodePort    10.106.33.24     <none>        7050:32000/TCP.

如果我这样做:

curl 10.106.33.24:7050

从集群中,我得到:

curl: (7) Failed to connect to 10.106.33.24 port 7050: Connection refused

尽管它是NodePort连接。是否有人了解该问题并知道如何解决?

编辑:

$ kubectl get pods

org1          peer0-org1-575c96bc66-mdlb4                 1/1     Running     0          16h
org1          peer1-org1-5cfb47f59-d6prc                  1/1     Running     0          16h

0 个答案:

没有答案