levi: update kube.nix for Calico

This commit is contained in:
Sean Buckley 2022-11-04 01:39:12 -04:00
parent 656658c038
commit 1ea3203050

View file

@ -1,6 +1,15 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
networking.firewall.allowedTCPPorts = [ 6443 ]; networking.firewall.allowedTCPPorts = [ 6443 ];
environment.systemPackages = [ pkgs.kubectl ]; environment.systemPackages = [
pkgs.kubectl
pkgs.kubernetes-helm
];
services.k3s.enable = true; 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"
];
} }