2024-03-02 21:59:18 +01:00
|
|
|
{inputs', ...}: {
|
|
|
|
imports = [
|
|
|
|
inputs'.uk3s-nix.nixosModules.uk3s
|
|
|
|
inputs'.uk3s-nix.nixosModules.uk3sIstio
|
|
|
|
inputs'.uk3s-nix.nixosModules.uk3sMetalLB
|
|
|
|
inputs'.uk3s-nix.nixosModules.ucontainers
|
|
|
|
inputs'.uk3s-nix.nixosModules.ucontainersNetwork
|
|
|
|
];
|
|
|
|
|
|
|
|
nixpkgs.overlays = [
|
|
|
|
inputs'.uk3s-nix.overlays.templateHelmChart
|
|
|
|
];
|
|
|
|
|
|
|
|
services.uk3s = {
|
|
|
|
enable = true;
|
2024-04-07 10:37:17 +02:00
|
|
|
hostAddress = "172.26.96.1/24";
|
|
|
|
guestAddress = "172.26.96.2/24";
|
2024-03-02 21:59:18 +01:00
|
|
|
|
2024-04-07 10:37:17 +02:00
|
|
|
vethNetwork = "172.26.96.0/24";
|
|
|
|
clusterNetwork = "172.26.80.0/20";
|
|
|
|
serviceNetwork = "172.26.88.0/21";
|
2024-03-02 21:59:18 +01:00
|
|
|
|
|
|
|
hostInterface = "uk3s0";
|
|
|
|
|
|
|
|
istio = {
|
|
|
|
enable = true;
|
2024-04-07 10:37:17 +02:00
|
|
|
profile = "kubernetes";
|
2024-03-02 21:59:18 +01:00
|
|
|
|
|
|
|
istiod.enable = true;
|
|
|
|
gateway.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
metallb = {
|
2024-04-07 10:37:17 +02:00
|
|
|
profile = "kubernetes";
|
2024-03-02 21:59:18 +01:00
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
k3s = {
|
|
|
|
settings = {
|
|
|
|
disable = [
|
|
|
|
"traefik"
|
|
|
|
"servicelb"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
datastore = {
|
|
|
|
type = "postgresql";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|