diff options
-rw-r--r-- | modules/development/kubernetes.nix | 21 | ||||
-rw-r--r-- | satoshipad.nix | 1 |
2 files changed, 22 insertions, 0 deletions
diff --git a/modules/development/kubernetes.nix b/modules/development/kubernetes.nix new file mode 100644 index 0000000..692e46d --- /dev/null +++ b/modules/development/kubernetes.nix @@ -0,0 +1,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 + ''; +} diff --git a/satoshipad.nix b/satoshipad.nix index 68a9d68..e4a8224 100644 --- a/satoshipad.nix +++ b/satoshipad.nix @@ -13,6 +13,7 @@ ./modules/development/base.nix ./modules/development/javascript.nix ./modules/development/lisp.nix + ./modules/development/kubernetes.nix ./modules/hardware/adb.nix ./modules/hardware/audio.nix ./modules/hardware/systemd-boot.nix |