Skip to content

What's the difference between node-token, token, agent-token? #9739

Answered by brandond
arches-richard asked this question in Q&A
Discussion options

You must be logged in to vote

https://docs.k3s.io/cli/token#token-format

The agent token is a less privileged token that can only be used to join agents, not servers.

If you don't specify a different --agent-token when starting the server, they are all the same thing:

root@k3s-server-1:/# ls -la /var/lib/rancher/k3s/server/*token
lrwxrwxrwx 1 root root  33 Mar 14 17:48 /var/lib/rancher/k3s/server/agent-token -> /var/lib/rancher/k3s/server/token
lrwxrwxrwx 1 root root  33 Mar 14 17:48 /var/lib/rancher/k3s/server/node-token -> /var/lib/rancher/k3s/server/token
-rw------- 1 root root 109 Mar 14 17:48 /var/lib/rancher/k3s/server/token

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@brandond
Comment options

@arches-richard
Comment options

@brandond
Comment options

@arches-richard
Comment options

@brandond
Comment options

Answer selected by arches-richard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants