nixos-config/hosts/levi/kube.nix
2022-11-04 01:39:12 -04:00

15 lines
367 B
Nix

{ pkgs, ... }:
{
networking.firewall.allowedTCPPorts = [ 6443 ];
environment.systemPackages = [
pkgs.kubectl
pkgs.kubernetes-helm
];
services.k3s.enable = true;
services.k3s.extraFlags = toString [
# flags for using Calico instead of Flannel
"--cluster-cidr=192.168.0.0/16"
"--disable-network-policy"
"--flannel-backend=none"
];
}