When developing applications with Kubernetes, it's common to use service accounts. You may need to impersonate a service account to test application.
A simple way to do this would be to generate a token for the service account:
kubectl create token <service-account-name> --duration=12h
then insert the token into your …
read more