Generate Kubernetes Access Token

How to retrieve an access token to use for the API calls to the Kubernetes cluster