Initial k8s build
This commit is contained in:
1 parent
fd66b79b0b
commit
bbb955f1c8
5 files changed
+17
-4
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
@@ -52,5 +52,10 @@ in
|
||||
# Firewall
|
||||
networking.firewall.allowedUDPPorts = openPorts;
|
||||
networking.firewall.allowedTCPPorts = openPorts;
|
||||
# K8s
|
||||
skyg.nixos.server.k8s = {
|
||||
enable = true;
|
||||
isMaster = true;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -32,5 +32,10 @@
|
||||
};
|
||||
};
|
||||
};
|
||||
# K8s
|
||||
skyg.nixos.server.k8s = {
|
||||
enable = true;
|
||||
isMaster = false;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -32,7 +32,6 @@ in
|
||||
|
||||
# packages for administration tasks
|
||||
environment.systemPackages = with pkgs; [
|
||||
kompose
|
||||
kubectl
|
||||
kubernetes
|
||||
];
|
||||
|
||||
Reference in new issue
Block a user