K3s example config
This commit is contained in:
parent
5d890f9c9f
commit
778f52923f
2 changed files with 13 additions and 0 deletions
|
|
@ -154,6 +154,7 @@
|
|||
|
||||
loki = loki-stable;
|
||||
loki-stable = lokiStable [ ];
|
||||
loki-k3s = lokiStable [ ./nixos_modules/k3s.nix ];
|
||||
loki-unstable = lokiUnstable [ ];
|
||||
|
||||
};
|
||||
|
|
|
|||
|
|
@ -2,4 +2,16 @@
|
|||
services.k3s = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
networking.firewall = {
|
||||
allowedTCPPorts = [
|
||||
6443 # Kubernetes API
|
||||
];
|
||||
allowedTCPPortRanges = [
|
||||
{
|
||||
from = 9000;
|
||||
to = 15000;
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue