What's the difference between node-token, token, agent-token? #9739
Answered
by
brandond
arches-richard
asked this question in
Q&A
-
What's the difference between the 3 tokens in |
Beta Was this translation helpful? Give feedback.
Answered by
brandond
Mar 14, 2024
Replies: 1 comment 6 replies
-
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 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 |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
arches-richard
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: