<p>I have configured OIDC with k8s installed using kubeadm.
After the configuration, when I run the command <code>kubectl --user=name@gmail.com get nodes</code> I get </p>

<blockquote>
  <p>error: You must be logged in to the server (the server has asked for the client to provide credentials (get nodes))</p>
</blockquote>

<p>Can someone please help me with this?</p>

<p>I use <code>kubectl --username=name@gmail.com get nodes</code> and it works. Earlier I was using the parameter <code>--user</code> instead of <code>--username</code>.</p>
