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