<blockquote>
  <p>How to use <code>kubectl</code> with system:anonymous account without using impersonation with <code>--as=system:anonymous</code>?</p>
</blockquote>

<p>How can I send requests with <code>kubectl</code> using the <code>system:anonymous</code> account?</p>

<p>I've tried using the <code>--as=</code> option, but this requires that the <code>default</code> service account has impersonation privileges, which it doesn't by default.</p>

<p>The only way I currently can send anonymous requests is by using <code>curl</code>.</p>

Shuzheng
<p>Set up a new configuration context that doesn't specify any authentication information and then use <code>--context whatever</code>. Or just use curl, that's honestly fine too since I'm really hoping this is just to confirm some security settings or similar. If you run kubectl with <code>-v 10000000</code> (or some other huge number) it will actually show you the equivalent curl command to the request it is making.</p>
