1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 06:31:02 +00:00

nixos/kubernetes: fix tests

This commit is contained in:
Jaka Hudoklin 2014-12-07 12:49:06 +01:00
parent 9b8e0828cc
commit 1b8516b498

View file

@ -45,7 +45,7 @@ import ./make-test.nix rec {
nodes = {
master =
{ config, pkgs, nodes, ... }:
{ config, pkgs, lib, nodes, ... }:
{
virtualisation.memorySize = 512;
virtualisation.kubernetes = {
@ -75,6 +75,7 @@ import ./make-test.nix rec {
ipAddress = "10.10.0.1";
prefixLength = 24;
};
eth2.ip4 = lib.mkOverride 0 [ ];
};
networking.localCommands = ''
ip route add 10.10.0.0/16 dev cbr0
@ -89,7 +90,7 @@ import ./make-test.nix rec {
};
node =
{ config, pkgs, nodes, ... }:
{ config, pkgs, lib, nodes, ... }:
{
virtualisation.kubernetes = {
roles = ["node"];
@ -112,6 +113,7 @@ import ./make-test.nix rec {
ipAddress = "10.10.1.1";
prefixLength = 24;
};
eth2.ip4 = lib.mkOverride 0 [ ];
};
networking.localCommands = ''
ip route add 10.10.0.0/16 dev cbr0