summary refs log tree commit diff stats
path: root/system/modules/development/kubernetes.nix
blob: 692e46d607c163f1a7f5808e4b01afb0ef06ce68 (plain)
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
  '';
}