<p>How can I <strong>mount</strong> service account token,
we are using a chart which doesn't support it and after a hour the chart is failing.</p>
<p><a href="https://kubernetes.io/docs/reference/access-authn-authz/service-accounts-admin/#bound-service-account-token-volume" rel="nofollow noreferrer">https://kubernetes.io/docs/reference/access-authn-authz/service-accounts-admin/#bound-service-account-token-volume</a> ?</p>
<p>I understand that from 1.22.x its by default behavior of k8s</p>
<p>its <code>BoundServiceAccountTokenVolume</code> in the following link
<a href="https://kubernetes.io/docs/reference/command-line-tools-reference/feature-gates/" rel="nofollow noreferrer">https://kubernetes.io/docs/reference/command-line-tools-reference/feature-gates/</a></p>
<p>Im referring to  <strong>manually mounting the service account token</strong>.</p>
<p>Im talking about vectordev which doesnt support the
<a href="https://vector.dev/docs/setup/installation/platforms/kubernetes/" rel="nofollow noreferrer">https://vector.dev/docs/setup/installation/platforms/kubernetes/</a></p>
<p><strong>update</strong>
according to this post this is the way to do it on k8s 1.22.x
please provide an example since im not sure how to make it work
<a href="https://github.com/vectordotdev/vector/issues/8616#issuecomment-1010281331" rel="nofollow noreferrer">https://github.com/vectordotdev/vector/issues/8616#issuecomment-1010281331</a></p>

<p>There's no issue for Vector agent to access the token, but the token will now expire within an hour by default; compare to previous where it has no expiry. When the token has past the validity time, the agent application needs to reload the token from the mounted token volume (previously was a secret volume). The change is needed in the agent application to support this paradigm, not on K8s.</p>
