Hey, I am looking for an example, how to create (and manage) a kubernetes service account token. T...
b
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: https://www.programmingwithwolfgang.com/use-the-tokenrequest-api-to-create-tokens-in-kubernetes/ How can I create such an token object via pulumi. I didn’t find anything in the examples repository ( https://github.com/pulumi/examples). 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.