05/16/2023, 10:11 AM
Hey, I am looking for an example, how to create (and manage) a kubernetes service account token. The kubectl command looks like this:
kubectl create token <user-name>
You can find more details about the TokenRequest API Here: How can I create such an token object via pulumi. I didn’t find anything in the examples repository ( Also the AI generated code tells me to apply the TokenRequest Object to the K8s Server, but I believe the TokenRequest is a read-only endpoint. Thanks, Patrick PS: We are using TypeScript, so we would benefit from a TS example.