mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
levi: Get NetworkPolicy working
This commit is contained in:
parent
a08a3618fb
commit
f34cd7f5cc
1 changed files with 8 additions and 9 deletions
|
@ -1,14 +1,13 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
networking.firewall.allowedTCPPorts = [ 6443 ];
|
networking.firewall.allowedTCPPorts = [ 6443 ];
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [ pkgs.kubectl ];
|
||||||
pkgs.kubectl
|
|
||||||
pkgs.kubernetes-helm
|
|
||||||
];
|
|
||||||
services.k3s.enable = true;
|
services.k3s.enable = true;
|
||||||
services.k3s.extraFlags = toString [
|
|
||||||
# flags for using Calico instead of Flannel
|
# Get NetworkPolicy working
|
||||||
"--disable-network-policy"
|
networking.firewall.enable = false;
|
||||||
"--flannel-backend=none"
|
systemd.services.k3s.path = [ pkgs.ipset ];
|
||||||
];
|
services.k3s.package = pkgs.k3s.overrideAttrs (prev: {
|
||||||
|
buildInputs = prev.buildInputs ++ [ pkgs.ipset ];
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue