<p>I have installed Gitlab on a Ubuntu 16.04 machine. Gitlab is working fine. 
Now, I am trying to install kubectl on the same machine. But getting an issue on command:</p>

<pre><code>$ kubectl cluster-info dump
</code></pre>

<hr>

<pre><code>error: serializer for text/html; charset=utf-8 doesn't exist
</code></pre>

Mihir Shah
<p>Looks like <code>kubectl</code> is talking to something else that is not your <code>kube-apiserver</code>.  Make sure your <code>~/.kube/config</code> file looks something like this and points to the right <code>kube-apiserver</code>:</p>

<pre><code>apiVersion: v1
clusters:
- cluster:
    certificate-authority-data: &lt;REDACTED&gt;
    server: https://10.10.10.1:6443 &lt;== This needs to point to the right kube-apiserver address
  name: kubernetes
contexts:
- context:
    cluster: kubernetes
    namespace: default
    user: kubernetes-admin
  name: kubernetes-admin@kubernetes
current-context: kubernetes-admin@kubernetes
kind: Config
preferences: {}
users:
- name: kubernetes-admin
  user:
    client-certificate-data: &lt;REDACTED&gt;
    client-key-data: &lt;REDACTED&gt;
</code></pre>
