<p>I want to use kubernetes on an ubuntu machine for development purpose (deployment/test) where I just want to run containers. So I installed kubectl following the <a href="https://kubernetes.io/docs/tasks/tools/install-kubectl/#install-kubectl-on-linux" rel="nofollow noreferrer">kubernetes manual</a> and when that didn't work I tried some others (native package and snap) but still get the same errors.</p>
<p>On each command I run I get an error, for example:</p>
<pre><code>kubectl version
Client Version: version.Info{Major:&quot;1&quot;, Minor:&quot;16&quot;, GitVersion:&quot;v1.16.0&quot;, GitCommit:&quot;2bd9643cee5b3b3a5ecbd3af49d09018f0773c77&quot;, GitTreeState:&quot;clean&quot;, BuildDate:&quot;2019-09-18T14:36:53Z&quot;, GoVersion:&quot;go1.12.9&quot;, Compiler:&quot;gc&quot;, Platform:&quot;linux/amd64&quot;}
error: unable to parse the server version: invalid character '&lt;' looking for beginning of value
</code></pre>
<p>or</p>
<pre><code>kubectl get services
error: yaml: line 3: mapping values are not allowed in this context
</code></pre>
<p>I don't know if it has something to do with it but the same machine is running Gitlab among other things. I haven't done any configuration on kubectl.</p>
<p>How can I find the source of these errors?</p>

BvdVen
<p>There is a may possibility of running another application on same port <code>localhost:8080</code>. <code>8080</code> default used by kubectl.</p>

<p>for more info please have a look at this : <a href="https://stackoverflow.com/questions/55818298/fresh-macos-install-kubectl-outputs-error-message">Fresh macos install - kubectl outputs error message</a></p>
