<p>I'm trying to spin up a new pod that doesn't automatically include a JWT for talking to the k8s cluster.</p>

<p>I've created a new Service Account and tried removing the built in secret, but it is automatically regenerated after each delete.</p>

<p>According to the <a href="http://kubernetes.io/docs/user-guide/secrets/#service-accounts-automatically-create-and-attach-secrets-with-api-credentials" rel="nofollow">secrets</a> documentation, I should be able to disable the creation of tokens for service accounts.</p>

<blockquote>
  <p>The automatic creation and use of API credentials can be disabled or overridden if desired.</p>
</blockquote>

<p>Where/how do I do that?</p>

<p>removing the <code>--service-account-private-key-file</code> argument from the controller manager will prevent auto-creation of tokens</p>

<p>removing the ServiceAccount admission plugin will prevent auto-mounting of tokens</p>

<p>however, many services are likely to depend on those tokens being present.</p>

<p>if you are concerned about access to the API, it is generally better to set an authorization mode other than AlwaysAllow, and use one of the modes that lets you specify policy around which users can perform which actions</p>
