too lazy to think of a message, so enjoy this pointless text. Good luck future me...
This commit is contained in:
parent
2ae7d62d29
commit
09e6d0f14e
1 changed files with 5 additions and 5 deletions
|
|
@ -42,7 +42,7 @@ in
|
||||||
secret = false;
|
secret = false;
|
||||||
};
|
};
|
||||||
token = {
|
token = {
|
||||||
deploy = false;
|
deploy = true;
|
||||||
secret = true;
|
secret = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
@ -70,7 +70,7 @@ in
|
||||||
services.k3s = {
|
services.k3s = {
|
||||||
enable = true;
|
enable = true;
|
||||||
role = "server";
|
role = "server";
|
||||||
token = config.clan.core.vars.generators.k3s.files.token.value;
|
tokenFile = config.clan.core.vars.generators.k3s.files.token.path;
|
||||||
clusterInit = true;
|
clusterInit = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
@ -97,8 +97,8 @@ in
|
||||||
ipAddress = if pathExists ipAddressPath then readFile ipAddressPath else null;
|
ipAddress = if pathExists ipAddressPath then readFile ipAddressPath else null;
|
||||||
|
|
||||||
# Read the controller's token
|
# Read the controller's token
|
||||||
tokenPath = "${config.clan.core.settings.directory}/vars/per-machine/${controller}/k3s/token";
|
# tokenPath = "${config.clan.core.settings.directory}/vars/per-machine/${controller}/k3s/token";
|
||||||
token = if pathExists tokenPath then readFile tokenPath else null;
|
# token = if pathExists tokenPath then readFile tokenPath else null;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
networking.firewall = {
|
networking.firewall = {
|
||||||
|
|
@ -117,7 +117,7 @@ in
|
||||||
k3s = {
|
k3s = {
|
||||||
enable = true;
|
enable = true;
|
||||||
role = "agent";
|
role = "agent";
|
||||||
token = token;
|
tokenFile = config.clan.core.vars.generators.k3s.files.token.path;
|
||||||
serverAddr = "https://${ipAddress}:6443";
|
serverAddr = "https://${ipAddress}:6443";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue