<p>I am trying to deploy Hyperledger fabric 1.0.5 on k8s, and use the balance transfer to test it. Everything is right before instantiate-chaincode, and I get this:</p>

<pre><code>[2019-01-02 23:23:14.392] [ERROR] instantiate-chaincode - Failed to send instantiate transaction and get notifications within the timeout period. undefined
[2019-01-02 23:23:14.393] [ERROR] instantiate-chaincode - Failed to order the transaction. Error code: undefined
</code></pre>

<p>and I use <code>kubectl logs</code> to get the peer0's log which is like this:</p>

<pre><code>[ConnProducer] NewConnection -&gt; ERRO 61a Failed connecting to orderer2.orderer1:7050 , error: context deadline exceeded
[ConnProducer] NewConnection -&gt; ERRO 61b Failed connecting to orderer1.orderer1:7050 , error: context deadline exceeded
[ConnProducer] NewConnection -&gt; ERRO 61c Failed connecting to orderer0.orderer1:7050 , error: context deadline exceeded
[deliveryClient] connect -&gt; DEBU 61d Connected to 
[deliveryClient] connect -&gt; ERRO 61e Failed obtaining connection: Could not connect to any of the endpoints: [orderer2.orderer1:7050 orderer1.orderer1:7050 orderer0.orderer1:7050]
</code></pre>

<p>I checked the connectivity of <code>orderer0:7050</code> and found no problem.</p>

<p>What should I do next？</p>

<p>Thank for help！</p>

<p>You didn't describe what runbook you followed to deploy Hyperledger Fabric but looks like your pods cannot find each other <a href="https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/" rel="nofollow noreferrer">through DNS</a>. If you are following Kubernetes standards your pods should be in the <code>orderer1</code> namespace and hopefully, you have Kubernetes <a href="https://kubernetes.io/docs/concepts/services-networking/service/" rel="nofollow noreferrer">services</a> for <code>orderer0</code>, <code>orderer1</code>, and <code>orderer2</code>.</p>

<p>You can read more about communication between the Fabric components <a href="http://www.think-foundry.com/deploy-hyperledger-fabric-on-kubernetes-part-1/" rel="nofollow noreferrer">here</a> in the "Communication between Fabric components" section. Also, read on the "Work around the chaincode sandbox" where it shows you a workaround for <code>--dns-search</code>.</p>
