Kubernetes: how to write cluster token to a file? [closed]
The output of the token list
can be formatted with jsonpath:
kubeadm token list -o=jsonpath='{.token}{"\n"}' > tokens.txt
By using this format only the token is printed by the list command.