From 1ea3203050b812c45ca5fee183c1ae737a3e05b1 Mon Sep 17 00:00:00 2001 From: Sean Buckley Date: Fri, 4 Nov 2022 01:39:12 -0400 Subject: [PATCH] levi: update kube.nix for Calico --- hosts/levi/kube.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/hosts/levi/kube.nix b/hosts/levi/kube.nix index 87aeffb..a3e923a 100644 --- a/hosts/levi/kube.nix +++ b/hosts/levi/kube.nix @@ -1,6 +1,15 @@ { pkgs, ... }: { networking.firewall.allowedTCPPorts = [ 6443 ]; - environment.systemPackages = [ pkgs.kubectl ]; + 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" + ]; }