summary refs log tree commit diff stats
path: root/system/settings/kubernetes.nix
blob: 8c171fc5a20d9afb425fc482ada8fc569bb6770f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{
  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
  '';
}