K3s example config

This commit is contained in:
Filippo Berto 2022-06-30 21:23:19 +02:00
parent 5d890f9c9f
commit 778f52923f
2 changed files with 13 additions and 0 deletions

View file

@ -154,6 +154,7 @@
loki = loki-stable;
loki-stable = lokiStable [ ];
loki-k3s = lokiStable [ ./nixos_modules/k3s.nix ];
loki-unstable = lokiUnstable [ ];
};

View file

@ -2,4 +2,16 @@
services.k3s = {
enable = true;
};
networking.firewall = {
allowedTCPPorts = [
6443 # Kubernetes API
];
allowedTCPPortRanges = [
{
from = 9000;
to = 15000;
}
];
};
}