···
1
-
import ./make-test-python.nix (
6
-
meta = with lib.maintainers; {
7
-
maintainers = [ offline ];
5
+
meta.maintainers = with lib.maintainers; [ offline ];
15
-
services.flannel = {
21
-
network = "10.1.0.0/16";
23
-
etcd.endpoints = [ "http://etcd:2379" ];
26
-
networking.firewall.allowedUDPPorts = [ 8285 ];
10
+
services.flannel = {
36
-
listenClientUrls = [ "http://0.0.0.0:2379" ]; # requires ip-address for binding
37
-
listenPeerUrls = [ "http://0.0.0.0:2380" ]; # requires ip-address for binding
38
-
advertiseClientUrls = [ "http://etcd:2379" ];
39
-
initialAdvertisePeerUrls = [ "http://etcd:2379" ];
40
-
initialCluster = [ "etcd=http://etcd:2379" ];
16
+
network = "10.1.0.0/16";
18
+
etcd.endpoints = [ "http://etcd:2379" ];
44
-
networking.firewall.allowedTCPPorts = [ 2379 ];
21
+
networking.firewall.allowedUDPPorts = [ 8285 ];
28
+
listenClientUrls = [ "http://0.0.0.0:2379" ]; # requires ip-address for binding
29
+
listenPeerUrls = [ "http://0.0.0.0:2380" ]; # requires ip-address for binding
30
+
advertiseClientUrls = [ "http://etcd:2379" ];
31
+
initialAdvertisePeerUrls = [ "http://etcd:2379" ];
32
+
initialCluster = [ "etcd=http://etcd:2379" ];
47
-
node1 = flannelConfig;
48
-
node2 = flannelConfig;
35
+
networking.firewall.allowedTCPPorts = [ 2379 ];
38
+
node1 = flannelConfig;
39
+
node2 = flannelConfig;
54
-
node1.wait_for_unit("flannel.service")
55
-
node2.wait_for_unit("flannel.service")
45
+
node1.wait_for_unit("flannel.service")
46
+
node2.wait_for_unit("flannel.service")
57
-
node1.wait_until_succeeds("ip l show dev flannel0")
58
-
ip1 = node1.succeed("ip -4 addr show flannel0 | grep -oP '(?<=inet).*(?=/)'")
59
-
node2.wait_until_succeeds("ip l show dev flannel0")
60
-
ip2 = node2.succeed("ip -4 addr show flannel0 | grep -oP '(?<=inet).*(?=/)'")
48
+
node1.wait_until_succeeds("ip l show dev flannel0")
49
+
ip1 = node1.succeed("ip -4 addr show flannel0 | grep -oP '(?<=inet).*(?=/)'")
50
+
node2.wait_until_succeeds("ip l show dev flannel0")
51
+
ip2 = node2.succeed("ip -4 addr show flannel0 | grep -oP '(?<=inet).*(?=/)'")
62
-
node1.wait_until_succeeds(f"ping -c 1 {ip2}")
63
-
node2.wait_until_succeeds(f"ping -c 1 {ip1}")
53
+
node1.wait_until_succeeds(f"ping -c 1 {ip2}")
54
+
node2.wait_until_succeeds(f"ping -c 1 {ip1}")