Update k0 and k2 to improved mkDeployment
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
with import <nixpkgs> {};
|
||||
let
|
||||
setup = import ../../modules/default.nix { inherit pkgs cluster customize lib config; };
|
||||
setup = import ../../modules { inherit pkgs cluster customize lib config; };
|
||||
|
||||
hosts = [
|
||||
{ name = "k2-0"; address = "10.1.8.56"; hw = ./k2-0.nix; }
|
||||
{ name = "k2-1"; address = "10.1.8.57"; hw = ./k2-1.nix; }
|
||||
{ name = "k2-2"; address = "10.1.8.58"; hw = ./k2-2.nix; }
|
||||
{ name = "k2-3"; address = "10.1.8.59"; hw = ./k2-3.nix; }
|
||||
@@ -17,6 +18,9 @@ let
|
||||
clusterName = "k2";
|
||||
initca = ./ca;
|
||||
|
||||
domain = "itpartner.intern";
|
||||
searchDomains = [ "itpartner.intern" "itpartner.no" ];
|
||||
|
||||
extraHosts = import ../hosts.nix;
|
||||
|
||||
adminAuthorizedKeys = [
|
||||
@@ -26,14 +30,10 @@ let
|
||||
|
||||
k8s = {
|
||||
enable = true;
|
||||
master = {
|
||||
name = "k2-0";
|
||||
address = "10.1.8.56";
|
||||
extraSANs = [ "k2.itpartner.no" ];
|
||||
hw = ./k2-0.nix;
|
||||
};
|
||||
nodes = hosts;
|
||||
cidr = "10.100.0.0/16";
|
||||
master = builtins.head hosts // { extraSANs = [ "k2.itpartner.no" ]; };
|
||||
nodes = builtins.tail hosts;
|
||||
extraIngressNodes = [ "k2-1.itpartner.intern" "k2-2.itpartner.intern" ];
|
||||
fileserver = "fs2-0";
|
||||
charts = {
|
||||
acme_email = "innovasjon@itpartner.no";
|
||||
@@ -43,4 +43,4 @@ let
|
||||
};
|
||||
};
|
||||
in
|
||||
setup.k8s.mkDeployment cluster.k8s.master hosts
|
||||
setup.k8s.mkDeployment
|
||||
|
||||
Reference in New Issue
Block a user