11 lines
528 B
Nix
11 lines
528 B
Nix
# What the k3s server and a node that joins it agree on about the join token:
|
|
# the leaf of the swarm secret store the server's unit writes it to
|
|
# (../k8s/join.nix) and the file the joining node's unit lands it in, which k3s
|
|
# reads as its token. ../swarm-bao.nix grants the hives' identities a read of
|
|
# the leaf.
|
|
{
|
|
# Under KV v2's `secret/` mount, as `bao kv` takes it.
|
|
leaf = "swarm/services/k8s/agent-token";
|
|
# On the node that joins. A tmpfs, so the token is fetched again at boot.
|
|
file = "/run/k3s-join/token";
|
|
}
|