Move node annotations to Nix

This commit is contained in:
Greg Hellings
2025-09-11 21:39:53 -05:00
parent ce0fd0102a
commit a573f12221
3 changed files with 34 additions and 13 deletions
+5 -2
View File
@@ -70,8 +70,6 @@ in
services = {
k3s = {
enable = true;
role = if cfg.agentOnly then "agent" else "server";
tokenFile = config.age.secrets.kubernetesToken.path;
extraFlags = [
"--cluster-cidr=10.211.0.0/16"
"--service-cidr=10.221.0.0/16"
@@ -83,7 +81,12 @@ in
"--tls-san ${config.networking.hostName}.thehellings.lan"
"--tls-san ${config.networking.hostName}.shire-zebra.ts.net"
];
manifests = {
node-annotations.content = ../../manifests/nodes.yaml;
};
role = if cfg.agentOnly then "agent" else "server";
serverAddr = lib.mkIf (config.networking.hostName != "isaiah") "https://isaiah.home:6443";
tokenFile = config.age.secrets.kubernetesToken.path;
};
keepalived =
let