nixos-config/hosts/levi/kube.nix

15 lines
331 B
Nix
Raw Normal View History

2022-11-01 03:21:41 +00:00
{ pkgs, ... }:
{
networking.firewall.allowedTCPPorts = [ 6443 ];
2022-11-04 05:39:12 +00:00
environment.systemPackages = [
pkgs.kubectl
pkgs.kubernetes-helm
];
2022-11-01 03:21:41 +00:00
services.k3s.enable = true;
2022-11-04 05:39:12 +00:00
services.k3s.extraFlags = toString [
# flags for using Calico instead of Flannel
"--disable-network-policy"
"--flannel-backend=none"
];
2022-11-01 03:21:41 +00:00
}