How to create a bearer token for kubernetes How to create a bearer token for kubernetes kubernetes kubernetes

How to create a bearer token for kubernetes


Bearer Tokens are just normal Tokens from ServiceAccounts.

Service account bearer tokens are perfectly valid to use outside the cluster and can be used to create identities for long standing jobs that wish to talk to the Kubernetes API.

You should def. create a new ServiceAccount with limit permissions (maybe the Tool has a documentation which permissions are needed).

Generally i would advise to never let any external Tool connect directly to the API Server, but this is up to you.

You can check about ServiceAccount Tokens here: https://kubernetes.io/docs/reference/access-authn-authz/authentication/#service-account-tokens