wip k3s cluster

This commit is contained in:
Pim Kunis 2024-03-26 20:26:02 +01:00
parent 3124436b46
commit bef9d8c474
5 changed files with 129 additions and 26 deletions

View file

@ -20,7 +20,7 @@ in {
services.k3s = {
enable = true;
role = "server";
extraFlags = "--tls-san ${config.networking.fqdn} --data-dir ${config.lab.storage.dataMountPoint}/k3s";
extraFlags = "--tls-san ${config.networking.fqdn}";
};
system.activationScripts.k3s-bootstrap.text =
@ -30,7 +30,7 @@ in {
}).config.kubernetes.result;
in
''
ln -sf ${k3sBootstrapFile} ${config.lab.storage.dataMountPoint}/k3s/server/manifests/k3s-bootstrap.json
ln -sf ${k3sBootstrapFile} /var/lib/rancher/k3s/server/manifests/k3s-bootstrap.json
'';
};
}