<p>I ran command
<strong>systemctl stop kubelet</strong>
then try to start it
<strong>systemctl start kubelet</strong></p>
<p>but can't able to start it</p>
<p>here is the output of <strong>systemctl status kubelet</strong></p>
<pre><code> kubelet.service - kubelet: The Kubernetes Node Agent
   Loaded: loaded (/lib/systemd/system/kubelet.service; enabled; vendor preset: enabled)
  Drop-In: /etc/systemd/system/kubelet.service.d
           └─10-kubeadm.conf
   Active: activating (auto-restart) (Result: exit-code) since Wed 2019-06-05 15:35:34 UTC; 7s ago
     Docs: https://kubernetes.io/docs/home/
  Process: 31697 ExecStart=/usr/bin/kubelet $KUBELET_KUBECONFIG_ARGS $KUBELET_CONFIG_ARGS $KUBELET_KUBEADM_ARGS $KUBELET_EXTRA_ARGS (code=exited, status=255)
 Main PID: 31697 (code=exited, status=255)
</code></pre>
<p>Because of this i am not able to run any kubectl command</p>
<p>example <strong>kubectl get pods</strong> gives</p>
<pre><code>The connection to the server 172.31.6.149:6443 was refused - did you specify the right host or port?
</code></pre>

Dhanraj
<p>So i need to reset kubelete service
Here are the step :-</p>
<ol>
<li>check status of your docker service.
If stoped,start it by cmd <code>sudo systemctl start docker</code>.
If not installed installed it
<code>#yum install -y kubelet kubeadm kubectl docker</code></li>
<li>Make swap off by #swapoff -a</li>
<li>Now reset kubeadm by #kubeadm reset</li>
<li>Now try #kudeadm init
after that check #systemctl status kubelet
it will be working</li>
</ol>
<p>Check nodes
kubectl get nodes
if Master Node is not ready ,refer following
To start using your cluster, you need to run the following as a regular user:</p>
<pre><code>mkdir -p $HOME/.kube
  sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
  sudo chown $(id -u):$(id -g) $HOME/.kube/config
</code></pre>
<p>if you not able to create pod ..check dns
kubectl get pods --namespace=kube-system
if dns pods are in pending state
i.e you need to use network service
i used calico</p>
<pre><code>kubectl apply -f https://docs.projectcalico.org/v3.7/manifests/calico.yaml
</code></pre>
<p>Now your master node is ready .. now you can deploy pod</p>
