Initial k8s build

This commit is contained in:
ari committed 2024-10-27 23:17:58 -04:00
1 parent fd66b79b0b
commit bbb955f1c8
5 files changed
+17 -4

No files matched your search

+3 -3
View File
@@ -35,9 +35,9 @@ else
fi
function run {
cmd=${1}
echo -e "$BOLD$cmd$NC on $YELLOW$target_host with $profile through $build_host$NC"
runcmd="nixos-rebuild --target-host $target_host --use-remote-sudo $cmd --flake .#$profile"
remote_cmd=${1}
echo -e "$BOLD$remote_cmd$NC on $YELLOW$target_host with $profile through $build_host$NC"
runcmd="nixos-rebuild --target-host $target_host --use-remote-sudo $remote_cmd --flake .#$profile"
echo -e "$BLUE$runcmd$NC"
$runcmd
}
+5
View File
@@ -52,5 +52,10 @@ in
# Firewall
networking.firewall.allowedUDPPorts = openPorts;
networking.firewall.allowedTCPPorts = openPorts;
# K8s
skyg.nixos.server.k8s = {
enable = true;
isMaster = true;
};
}
+5
View File
@@ -32,5 +32,10 @@
};
};
};
# K8s
skyg.nixos.server.k8s = {
enable = true;
isMaster = false;
};
}
+4
View File
@@ -24,6 +24,10 @@
skyg.core.substituters = localNixCaches;
skyg.networkDrives.enable = enableNetworkDrives;
skyg.nixos.common.containers = (if os.enable then os.containers else { });
skyg.nixos.server.k8s = {
masterIP = "10.0.10.6";
masterHostName = "minipc1.lab.internal";
};
system.stateVersion = systemStateVersion;
nixpkgs.config.allowUnfree = true;
nix = {
-1
View File
@@ -32,7 +32,6 @@ in
# packages for administration tasks
environment.systemPackages = with pkgs; [
kompose
kubectl
kubernetes
];