2024-11-12 20:02:15 -06:00
|
|
|
{config, lib, ...}: {
|
2024-11-03 21:38:19 -06:00
|
|
|
sops.secrets."k3s-token" = {
|
|
|
|
sopsFile = ../../../secrets/k3s-token.txt;
|
|
|
|
format = "binary";
|
|
|
|
};
|
|
|
|
|
|
|
|
services.k3s = {
|
|
|
|
enable = true;
|
2024-11-12 20:02:15 -06:00
|
|
|
role = "server";
|
|
|
|
clusterInit = true;
|
2024-11-03 21:38:19 -06:00
|
|
|
tokenFile = config.sops.secrets."k3s-token".path;
|
2024-11-12 20:02:15 -06:00
|
|
|
|
|
|
|
extraFlags = lib.concatStringsSep " " [
|
|
|
|
"--disable=servicelb"
|
|
|
|
"--disable=local-storage"
|
|
|
|
"--disable=helm-controller"
|
|
|
|
"--tls-san=k8s.int.min.rip"
|
|
|
|
];
|
2024-11-03 21:38:19 -06:00
|
|
|
};
|
|
|
|
}
|