<p>Environment Details:</p>
<pre><code>Kubernetes version: `v1.20.2`
Master Node: `Bare Metal/Host OS: CentOS 7`
Worker Node: `VM/Host OS: CentOS 7`
</code></pre>
<p>I have installed &amp; configured the Kubernetes cluster, the Master node on the bare metal server &amp; the worker node on windows server 2012 HyperV VM. Both master and worker nodes have the same Kubernetes version ( v1.20.2) &amp; centos7. Successfully joined worker node to master, below is the get nodes status.</p>
<pre><code>$ kubectl get nodes

**NAME             STATUS ROLES               AGE  VERSION

k8s-worker-node1 Ready  &lt;none&gt;              2d2h v1.20.2

master-node      Ready control-plane,master 3d4h v1.20.2**
</code></pre>
<p>While creating a deployment on the worker node I am getting the below error message.</p>
<p>On worker node, I issued the following command.</p>
<pre><code>$ kubectl create deployment nginx-depl --image=nginx

Error message is:
error: failed to create deployment: Post “http://localhost:8080/apis/apps/v1/namespaces/default/deployments?fieldManager=kubectl-create”: dial tcp: lookup localhost on 8.8.8.8:53: no such host
</code></pre>
<p>please help me to resolve this issue as I am not able to understand what is the problem.</p>

Imran Shaikh
<p>May you have to run <code>minikube start</code> before. I’m learning and between one class and another I forgot to run this command. I hope I have helped someone.</p>
<p>This worked for me.</p>
