nixos-config/hosts/levi/kube.nix

16 lines
367 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
"--cluster-cidr=192.168.0.0/16"
"--disable-network-policy"
"--flannel-backend=none"
];
2022-11-01 03:21:41 +00:00
}