mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
levi: update kube.nix for Calico
This commit is contained in:
parent
656658c038
commit
1ea3203050
1 changed files with 10 additions and 1 deletions
|
@ -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"
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue