This message was deleted.
# k3s
a
This message was deleted.
c
no. those are not server tokens. those are agent tokens. check the docs.
K3s supports dynamically generated, automatically expiring agent bootstrap tokens. Bootstrap tokens can only be used to join agents.
if you want to set your own server token, just generate a random string. The full token format with the K10 prefix can’t be known until the cluster CAs are generated. That is covered on the same page.
q
Oh, I see. Thanks. So, in order to get a token before setting up the first server, do I need to create a random token (random string) as a "short token" and use this token for the first server and agents?
c
usually folks just start the server and let it generate a random token, then use that for other servers and agents.
q
I know, but for my current use case, it would be nice to have the token before creating the cluster!
c
then just use a random string