I need to execute this operation from my (.NET) application. How do I figure out which k8s API to map this command to? Ideally, how do I use the .NET SDK to make this call?
CodePudding user response:
You can read the API docs: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.23/#tokenrequest-v1-authentication-k8s-io
You can also inpsect what kubectl is doing by increasing the verbosity level: https://kubernetes.io/docs/reference/kubectl/cheatsheet/#kubectl-output-verbosity-and-debugging
Kubectl verbosity is controlled with the -v or --v flags followed by an integer representing the log level. General Kubernetes logging conventions and the associated log levels are described here.