mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-26 01:56:13 +01:00
6a7adefd8e
Signed-off-by: magic_rb <magic_rb@redalder.org>
52 lines
993 B
Nix
52 lines
993 B
Nix
{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;
|
|
hostAddress = "172.26.96.1/24";
|
|
guestAddress = "172.26.96.2/24";
|
|
|
|
vethNetwork = "172.26.96.0/24";
|
|
clusterNetwork = "172.26.80.0/20";
|
|
serviceNetwork = "172.26.88.0/21";
|
|
|
|
hostInterface = "uk3s0";
|
|
|
|
istio = {
|
|
enable = true;
|
|
profile = "kubernetes";
|
|
|
|
istiod.enable = true;
|
|
gateway.enable = true;
|
|
};
|
|
|
|
metallb = {
|
|
profile = "kubernetes";
|
|
enable = true;
|
|
};
|
|
|
|
k3s = {
|
|
settings = {
|
|
disable = [
|
|
"traefik"
|
|
"servicelb"
|
|
];
|
|
};
|
|
|
|
datastore = {
|
|
type = "postgresql";
|
|
};
|
|
};
|
|
};
|
|
}
|