Introduction
Recently I’ve been experimenting with creating users with the Kubernetes API and have
even created a module called kubernetes-user.
While the subject of Kubernetes users is a complicated one, this Python module explores different
methods to authenticate with the Kubernetes API.
One such method for authenticating with the API is through Kubernetes Service Account (SA)
tokens. Basically, Kubernetes automatically associates a secret token with each Service Account.
These tokens exist as a Kubernetes Secret and reside in the same namespace as the
SA. A SA definition references the secret it is associated with.
This article demonstrates how you can find these tokens and use them for authenticating with
the Kubernetes API.