<p>when i am trying to test the configuration of kubectl</p>
<pre><code>kubectl get svc 
</code></pre>
<p>i am getting this</p>
<blockquote>
<p>error: the server doesn't have a resource type &quot;svc&quot;</p>
</blockquote>
<p>when I try this command</p>
<pre><code>kubectl get services 
</code></pre>
<p>i am getting error:</p>
<blockquote>
<p>The connection to the server localhost:8080 was refused - did you specify the right host or port?</p>
</blockquote>
<p>and i am following this userguide to deploy a kubernetes application on my mac</p>
<p><a href="https://docs.aws.amazon.com/eks/latest/userguide/getting-started.html#eks-create-cluster" rel="noreferrer">https://docs.aws.amazon.com/eks/latest/userguide/getting-started.html#eks-create-cluster</a></p>
<pre><code>Admins-MacBook-Pro:~ Harshin$ kubectl version --short --client
Client Version: v1.10.3
</code></pre>

<p>Make a copy of the config file and resolve this issue:</p>

<pre><code>sudo mkdir ~/.kube
sudo cp /etc/kubernetes/admin.conf ~/.kube/

cd ~/.kube

sudo mv admin.conf config
sudo service kubelet restart
</code></pre>
