Pin nixos version for k0
This commit is contained in:
@@ -47,7 +47,7 @@ let
|
|||||||
|
|
||||||
k8s = {
|
k8s = {
|
||||||
enable = true;
|
enable = true;
|
||||||
node.enable = true;
|
node.enable = mkDefault true;
|
||||||
clusterName = "k0";
|
clusterName = "k0";
|
||||||
initca = ./ca;
|
initca = ./ca;
|
||||||
cidr = "10.100.0.0/16";
|
cidr = "10.100.0.0/16";
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
with import <nixpkgs> {};
|
# Pin the deployment package-set to a specific version of nixpkgs
|
||||||
|
# with import <nixpkgs> {};
|
||||||
|
with import ../nixos-21.05.nix {};
|
||||||
let
|
let
|
||||||
|
|
||||||
master = {
|
master = {
|
||||||
@@ -6,6 +8,7 @@ let
|
|||||||
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;
|
features.k8s.nodes = nodes;
|
||||||
|
services.kubernetes.kubelet.unschedulable = true;
|
||||||
imports = [ ./cluster.nix ./hw/k0-0.nix ];
|
imports = [ ./cluster.nix ./hw/k0-0.nix ];
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -15,9 +18,9 @@ let
|
|||||||
];
|
];
|
||||||
|
|
||||||
mkNode = x: {
|
mkNode = x: {
|
||||||
"${x.name}" = {
|
"${x.name}" =
|
||||||
node.name = x.name;
|
{
|
||||||
node.address = x.address;
|
node = x;
|
||||||
imports = [ ./cluster.nix (./hw + "/${x.name}.nix") ];
|
imports = [ ./cluster.nix (./hw + "/${x.name}.nix") ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
4
clusters/nixos-21.05.nix
Normal file
4
clusters/nixos-21.05.nix
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
import (builtins.fetchTarball {
|
||||||
|
url = "https://github.com/NixOS/nixpkgs/archive/ad6e733d633802620b5eec9be91e837973eac18a.tar.gz";
|
||||||
|
sha256 = "0220v3389awigxih0hrphnnc22gmslliv1q6f0f2cjk6ibhq5fff";
|
||||||
|
})
|
||||||
Reference in New Issue
Block a user