Update k0 and k2 to improved mkDeployment
This commit is contained in:
@@ -6,16 +6,15 @@
|
|||||||
10.1.8.54 k0-1 k0-1.itpartner.intern
|
10.1.8.54 k0-1 k0-1.itpartner.intern
|
||||||
10.1.8.55 k0-2 k0-2.itpartner.intern
|
10.1.8.55 k0-2 k0-2.itpartner.intern
|
||||||
|
|
||||||
|
10.1.8.56 k2-0 k2-0.itpartner.intern
|
||||||
|
10.1.8.57 k2-1 k2-1.itpartner.intern
|
||||||
|
10.1.8.58 k2-2 k2-2.itpartner.intern
|
||||||
|
10.1.8.59 k2-3 k2-3.itpartner.intern
|
||||||
|
10.1.8.60 k2-4 k2-4.itpartner.intern
|
||||||
|
|
||||||
10.253.18.109 k1-0 k1-0.itpartner.intern
|
10.253.18.109 k1-0 k1-0.itpartner.intern
|
||||||
10.253.18.110 k1-1 k1-1.itpartner.intern
|
10.253.18.110 k1-1 k1-1.itpartner.intern
|
||||||
10.253.18.111 k1-2 k1-2.itpartner.intern
|
10.253.18.111 k1-2 k1-2.itpartner.intern
|
||||||
10.253.18.108 k1-3 k1-3.itpartner.intern
|
10.253.18.108 k1-3 k1-3.itpartner.intern
|
||||||
10.253.18.107 k0-4 k1-4.itpartner.intern
|
10.253.18.107 k0-4 k1-4.itpartner.intern
|
||||||
|
|
||||||
10.253.18.114 k2-0 k2-0.itpartner.intern
|
|
||||||
10.253.18.115 k2-1 k2-1.itpartner.intern
|
|
||||||
10.253.18.116 k2-2 k2-2.itpartner.intern
|
|
||||||
10.253.18.117 k2-3 k2-3.itpartner.intern
|
|
||||||
10.253.18.118 k2-4 k2-4.itpartner.intern
|
|
||||||
10.253.18.103 k2-5 k2-5.itpartner.intern
|
|
||||||
''
|
''
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
with import <nixpkgs> {};
|
with import <nixpkgs> {};
|
||||||
let
|
let
|
||||||
setup = import ../../modules/default.nix { inherit pkgs cluster customize lib config; };
|
setup = import ../../modules { inherit pkgs cluster customize lib config; };
|
||||||
|
|
||||||
hosts = [
|
hosts = [
|
||||||
|
{ name = "k0-0"; address = "10.1.8.53"; hw = ./k0-0.nix; }
|
||||||
{ name = "k0-1"; address = "10.1.8.54"; hw = ./k0-1.nix; }
|
{ name = "k0-1"; address = "10.1.8.54"; hw = ./k0-1.nix; }
|
||||||
{ name = "k0-2"; address = "10.1.8.55"; hw = ./k0-2.nix; }
|
{ name = "k0-2"; address = "10.1.8.55"; hw = ./k0-2.nix; }
|
||||||
];
|
];
|
||||||
@@ -15,6 +16,9 @@ let
|
|||||||
clusterName = "k0";
|
clusterName = "k0";
|
||||||
initca = ./ca;
|
initca = ./ca;
|
||||||
|
|
||||||
|
domain = "itpartner.intern";
|
||||||
|
searchDomains = [ "itpartner.intern" "itpartner.no" ];
|
||||||
|
|
||||||
extraHosts = import ../hosts.nix;
|
extraHosts = import ../hosts.nix;
|
||||||
|
|
||||||
adminAuthorizedKeys = [
|
adminAuthorizedKeys = [
|
||||||
@@ -24,15 +28,10 @@ let
|
|||||||
|
|
||||||
k8s = {
|
k8s = {
|
||||||
enable = true;
|
enable = true;
|
||||||
master = {
|
cidr = "10.100.0.0/16";
|
||||||
name = "k0-0";
|
master = builtins.head hosts // { extraSANs = [ "k0.itpartner.no" ]; };
|
||||||
address = "10.1.8.53";
|
nodes = builtins.tail hosts;
|
||||||
extraSANs = [ "k0.itpartner.no" ];
|
extraIngressNodes = [ "k0-1.itpartner.intern" "k0-2.itpartner.intern" ];
|
||||||
hw = ./k0-0.nix;
|
|
||||||
};
|
|
||||||
nodes = hosts;
|
|
||||||
cidr = "10.11.0.0/16";
|
|
||||||
extraIngressNodes = [ "k0-1" "k0-2" ];
|
|
||||||
fileserver = "fs2-0";
|
fileserver = "fs2-0";
|
||||||
charts = {
|
charts = {
|
||||||
acme_email = "innovasjon@itpartner.no";
|
acme_email = "innovasjon@itpartner.no";
|
||||||
@@ -42,4 +41,4 @@ let
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
setup.k8s.mkDeployment cluster.k8s.master hosts
|
setup.k8s.mkDeployment
|
||||||
|
|||||||
@@ -12,12 +12,12 @@
|
|||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
fileSystems."/" =
|
fileSystems."/" =
|
||||||
{ device = "/dev/disk/by-uuid/2306f185-eff6-43a4-b032-4c9f14fb0893";
|
{ device = "/dev/disk/by-uuid/a6915f49-234d-4ec1-ab1c-87a529b7b36b";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/boot" =
|
fileSystems."/boot" =
|
||||||
{ device = "/dev/disk/by-uuid/3D9E-1634";
|
{ device = "/dev/disk/by-uuid/29C6-3721";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -12,12 +12,12 @@
|
|||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
fileSystems."/" =
|
fileSystems."/" =
|
||||||
{ device = "/dev/disk/by-uuid/a44f60ee-fe60-4419-8a4d-c1f131e6bfc4";
|
{ device = "/dev/disk/by-uuid/0f636fe0-cd3c-4c82-b936-bb53a07ded6b";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/boot" =
|
fileSystems."/boot" =
|
||||||
{ device = "/dev/disk/by-uuid/3EEB-878E";
|
{ device = "/dev/disk/by-uuid/29AC-47D5";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -12,12 +12,12 @@
|
|||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
fileSystems."/" =
|
fileSystems."/" =
|
||||||
{ device = "/dev/disk/by-uuid/89410434-e9aa-480c-b49e-4ea24dc80fc2";
|
{ device = "/dev/disk/by-uuid/bf2f7548-1a5d-4b02-a684-f666e3563eaf";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/boot" =
|
fileSystems."/boot" =
|
||||||
{ device = "/dev/disk/by-uuid/3FDB-4765";
|
{ device = "/dev/disk/by-uuid/2A74-A44E";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ let
|
|||||||
];
|
];
|
||||||
|
|
||||||
customize = {
|
customize = {
|
||||||
boot.bios = true;
|
boot.uefi = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
cluster = {
|
cluster = {
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
with import <nixpkgs> {};
|
with import <nixpkgs> {};
|
||||||
let
|
let
|
||||||
setup = import ../../modules/default.nix { inherit pkgs cluster customize lib config; };
|
setup = import ../../modules { inherit pkgs cluster customize lib config; };
|
||||||
|
|
||||||
hosts = [
|
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-1"; address = "10.1.8.57"; hw = ./k2-1.nix; }
|
||||||
{ name = "k2-2"; address = "10.1.8.58"; hw = ./k2-2.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; }
|
{ name = "k2-3"; address = "10.1.8.59"; hw = ./k2-3.nix; }
|
||||||
@@ -17,6 +18,9 @@ let
|
|||||||
clusterName = "k2";
|
clusterName = "k2";
|
||||||
initca = ./ca;
|
initca = ./ca;
|
||||||
|
|
||||||
|
domain = "itpartner.intern";
|
||||||
|
searchDomains = [ "itpartner.intern" "itpartner.no" ];
|
||||||
|
|
||||||
extraHosts = import ../hosts.nix;
|
extraHosts = import ../hosts.nix;
|
||||||
|
|
||||||
adminAuthorizedKeys = [
|
adminAuthorizedKeys = [
|
||||||
@@ -26,14 +30,10 @@ let
|
|||||||
|
|
||||||
k8s = {
|
k8s = {
|
||||||
enable = true;
|
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";
|
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";
|
fileserver = "fs2-0";
|
||||||
charts = {
|
charts = {
|
||||||
acme_email = "innovasjon@itpartner.no";
|
acme_email = "innovasjon@itpartner.no";
|
||||||
@@ -43,4 +43,4 @@ let
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
setup.k8s.mkDeployment cluster.k8s.master hosts
|
setup.k8s.mkDeployment
|
||||||
|
|||||||
Reference in New Issue
Block a user