<p>I have a kubernetes cluster with three nodes: <code>10.9.84.149</code>,<code>10.9.105.90</code> and <code>10.9.84.149</code>. When my application tries to execute the command inside some pod:</p>

<pre><code>kuebctl exec -it &lt;podName&gt; 
</code></pre>

<p>it sometimes gets an error:</p>

<pre><code>Error from server: error dialing backend: dial tcp 10.9.84.149:10250: getsockopt: connection refused
</code></pre>

<p>As far as I could see everything was fine with the cluster: all kube-system services and pods were running well. Besides, it didn't appear regularly.</p>

<p>Can anybody help me on this issue?</p>

<p>I got the same error as this below                                   </p>

<p><code>Error from server: Get https://192.168.100.102:10250/containerLogs/default/kubia-n8nv9/kubia: dial tcp 192.168.100.102:10250: connect: no route to host</code>   </p>

<p><b>DISABLING THE FIREWALL WAS MY FIX ON ALL NODES</b></p>

<p>I figured out my worker nodes firewall was not disabled. I did instruction below to fix my problem</p>

<pre><code>systemctl disable firewalld &amp;&amp; systemctl stop firewalld
-Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1...
-Removed symlink /etc/systemd/system/basic.target.wants/firewalld.service.```
</code></pre>
