Install longhorn on k3s
Introduce new storage standard with LVM
This commit is contained in:
parent
7e14a2cc13
commit
a21a09ad6b
9 changed files with 257 additions and 69 deletions
|
@ -4,13 +4,12 @@
|
|||
|
||||
nixosModule.lab = {
|
||||
storage = {
|
||||
osDisk = "/dev/sda";
|
||||
dataPartition = "/dev/nvme0n1p1";
|
||||
kubernetesNode = true;
|
||||
};
|
||||
|
||||
k3s = {
|
||||
enable = true;
|
||||
role = "agent";
|
||||
# role = "server";
|
||||
serverAddr = "https://jefke.dmz:6443";
|
||||
};
|
||||
};
|
||||
|
|
|
@ -4,8 +4,7 @@
|
|||
|
||||
nixosModule.lab = {
|
||||
storage = {
|
||||
osDisk = "/dev/sda";
|
||||
dataPartition = "/dev/nvme0n1p1";
|
||||
kubernetesNode = true;
|
||||
};
|
||||
|
||||
k3s = {
|
||||
|
|
|
@ -11,46 +11,46 @@
|
|||
config = builtins.readFile ./bird.conf;
|
||||
};
|
||||
|
||||
systemd.network = {
|
||||
netdevs = {
|
||||
hamgre = {
|
||||
netdevConfig = {
|
||||
Name = "hamgre";
|
||||
Kind = "gre";
|
||||
MTUBytes = "1468";
|
||||
};
|
||||
#systemd.network = {
|
||||
# netdevs = {
|
||||
# hamgre = {
|
||||
# netdevConfig = {
|
||||
# Name = "hamgre";
|
||||
# Kind = "gre";
|
||||
# MTUBytes = "1468";
|
||||
# };
|
||||
|
||||
tunnelConfig = {
|
||||
Remote = "145.220.78.4";
|
||||
#Local = "192.145.57.90";
|
||||
};
|
||||
};
|
||||
# tunnelConfig = {
|
||||
# Remote = "145.220.78.4";
|
||||
# #Local = "192.145.57.90";
|
||||
# };
|
||||
# };
|
||||
|
||||
# hambr = {
|
||||
# netdevConfig = {
|
||||
# Name = "hambr";
|
||||
# Kind = "bridge";
|
||||
# };
|
||||
# };
|
||||
};
|
||||
# # hambr = {
|
||||
# # netdevConfig = {
|
||||
# # Name = "hambr";
|
||||
# # Kind = "bridge";
|
||||
# # };
|
||||
# # };
|
||||
# };
|
||||
|
||||
networks = {
|
||||
"30-main-nic".networkConfig.Tunnel = "hamgre";
|
||||
# networks = {
|
||||
# "30-main-nic".networkConfig.Tunnel = "hamgre";
|
||||
|
||||
"40-hamgre" = {
|
||||
matchConfig.Name = "hamgre";
|
||||
# "40-hamgre" = {
|
||||
# matchConfig.Name = "hamgre";
|
||||
|
||||
networkConfig = {
|
||||
Address = "44.137.61.34/30";
|
||||
};
|
||||
};
|
||||
# networkConfig = {
|
||||
# Address = "44.137.61.34/30";
|
||||
# };
|
||||
# };
|
||||
|
||||
# "40-hambr" = {
|
||||
# matchConfig.Name = "hambr";
|
||||
# # "40-hambr" = {
|
||||
# # matchConfig.Name = "hambr";
|
||||
|
||||
# };
|
||||
};
|
||||
};
|
||||
# # };
|
||||
# };
|
||||
#};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Reference in a new issue