<p>I am trying to run kubectl commands in offline mode but it keeps saying&gt;</p>
<pre><code> kubectl cordon hhpsoscr0001
The connection to the server localhost:8080 was refused - did you specify the right host or port?
</code></pre>
<p>I fail to understand what can be the issue. Can anyone help me on this?</p>

arpita22
<p>Please execute : kubectl get svc to see if you get a ClusterIP type output.
If you don't, please configure your kube config properly as @David Maze suggested earlier.</p>
