chore: Restructure files.
This commit is contained in:
parent
6db5703527
commit
77c5c90a46
7 changed files with 175 additions and 252 deletions
32
nixinfra/commons.server.nix
Normal file
32
nixinfra/commons.server.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
let
|
||||
pkgs = import <nixpkgs> {};
|
||||
in {
|
||||
imports = [
|
||||
./commons.nix
|
||||
];
|
||||
|
||||
proxmox.qemuConf.memory = 4096;
|
||||
proxmox.qemuConf.cores = 1;
|
||||
proxmox.qemuConf.name = "k3s-server";
|
||||
proxmox.qemuConf.diskSize = pkgs.lib.mkForce "16384";
|
||||
|
||||
services.k3s = {
|
||||
role = "server";
|
||||
serverAddr = "https://kitteh-node-1-k3s-server:6443";
|
||||
};
|
||||
|
||||
# K3s settings
|
||||
networking.firewall = {
|
||||
enable = true;
|
||||
|
||||
allowedTCPPorts = [
|
||||
6443
|
||||
2379
|
||||
2380
|
||||
];
|
||||
|
||||
allowedUDPPorts = [
|
||||
8472
|
||||
];
|
||||
};
|
||||
}
|
Reference in a new issue