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
|
fi
|
||||||
|
|
||||||
function run {
|
function run {
|
||||||
cmd=${1}
|
remote_cmd=${1}
|
||||||
echo -e "$BOLD$cmd$NC on $YELLOW$target_host with $profile through $build_host$NC"
|
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 $cmd --flake .#$profile"
|
runcmd="nixos-rebuild --target-host $target_host --use-remote-sudo $remote_cmd --flake .#$profile"
|
||||||
echo -e "$BLUE$runcmd$NC"
|
echo -e "$BLUE$runcmd$NC"
|
||||||
$runcmd
|
$runcmd
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -52,5 +52,10 @@ in
|
|||||||
# Firewall
|
# Firewall
|
||||||
networking.firewall.allowedUDPPorts = openPorts;
|
networking.firewall.allowedUDPPorts = openPorts;
|
||||||
networking.firewall.allowedTCPPorts = 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.core.substituters = localNixCaches;
|
||||||
skyg.networkDrives.enable = enableNetworkDrives;
|
skyg.networkDrives.enable = enableNetworkDrives;
|
||||||
skyg.nixos.common.containers = (if os.enable then os.containers else { });
|
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;
|
system.stateVersion = systemStateVersion;
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
nix = {
|
nix = {
|
||||||
|
|||||||
@@ -32,7 +32,6 @@ in
|
|||||||
|
|
||||||
# packages for administration tasks
|
# packages for administration tasks
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
kompose
|
|
||||||
kubectl
|
kubectl
|
||||||
kubernetes
|
kubernetes
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in new issue
Block a user