Add list of nodes to config, for restart scripts
This commit is contained in:
@@ -5,6 +5,7 @@ let
|
|||||||
node.name = "k0-0";
|
node.name = "k0-0";
|
||||||
node.address = "10.1.8.50";
|
node.address = "10.1.8.50";
|
||||||
features.k8s.master.enable = true;
|
features.k8s.master.enable = true;
|
||||||
|
features.k8s.nodes = nodes;
|
||||||
imports = [ ./cluster.nix ./hw/k0-0.nix ];
|
imports = [ ./cluster.nix ./hw/k0-0.nix ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ let
|
|||||||
node.name = "k1-0";
|
node.name = "k1-0";
|
||||||
node.address = "10.1.30.100";
|
node.address = "10.1.30.100";
|
||||||
features.k8s.master.enable = true;
|
features.k8s.master.enable = true;
|
||||||
|
features.k8s.nodes = nodes;
|
||||||
imports = [ ./cluster.nix ./hw/k1-0.nix ];
|
imports = [ ./cluster.nix ./hw/k1-0.nix ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -84,7 +84,6 @@ in {
|
|||||||
type = types.str;
|
type = types.str;
|
||||||
default = null;
|
default = null;
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
config = configuration;
|
config = configuration;
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ let
|
|||||||
node.name = "k2-0";
|
node.name = "k2-0";
|
||||||
node.address = "10.1.8.60";
|
node.address = "10.1.8.60";
|
||||||
features.k8s.master.enable = true;
|
features.k8s.master.enable = true;
|
||||||
|
features.k8s.nodes = nodes;
|
||||||
imports = [ ./cluster.nix ./hw/k2-0.nix ];
|
imports = [ ./cluster.nix ./hw/k2-0.nix ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user