Skip to content

Commit

Permalink
frametop: Add kubernetes playground with k3s :)
Browse files Browse the repository at this point in the history
  • Loading branch information
bew committed Mar 7, 2024
1 parent 5590cb1 commit 8961b07
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hosts/frametop/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@

../../modules/for-zsa-keyboards.nix
../../modules/input-remaps.nix

# Play with kubernetes :)
../../modules/k3s-playground.nix
];

# IDEA: 'options' that act as hardware reference, to be able to access the hardware info in a pure way at eval time,
Expand Down
14 changes: 14 additions & 0 deletions modules/k3s-playground.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{ ... }:

# https://nixos.wiki/wiki/K3s
{
services.k3s = {
enable = true;
role = "server";
};

networking.firewall.allowedTCPPorts = [
6443 # required so that pods can reach the API server
];
# note: for some custom k3s configs other ports might be needed.
}

0 comments on commit 8961b07

Please sign in to comment.