system/modules/development/kubernetes.nix (view raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | { config, pkgs, ... }: { networking.bridges = { cbr0.interfaces = []; }; networking.interfaces = { cbr0 = { ipv4.addresses = [ { address = "10.10.0.1"; prefixLength = 24; } ]; }; }; services.kubernetes.roles = ["master" "node"]; services.kubernetes.kubelet.extraOpts = "--fail-swap-on=false"; virtualisation.docker.extraOptions = '' --iptables=false --ip-masq=false -b cbr0 ''; } |