nixos-servers/kubenix-modules/all.nix
Pim Kunis e7d75fbb21 Use nix-snapshotter as k3s' snapshotter and image service
Replace k3s' embedded containerd with Nix-managed one
Deploy test k8s with image from Nix store
2024-06-24 23:31:06 +02:00

61 lines
1.2 KiB
Nix

let
applications = [
./freshrss.nix
./cyberchef.nix
./kms.nix
./inbucket.nix
./radicale.nix
./syncthing.nix
./nextcloud.nix
./pihole.nix
./hedgedoc.nix
./paperless.nix
./kitchenowl.nix
./forgejo
./media.nix
./bind9
./dnsmasq.nix
./blog.nix
./attic.nix
./atuin.nix
./immich.nix
# ./argo.nix
# ./minecraft.nix
];
in
{
kubernetes.resources.pods.testje.spec = {
containers.redis = {
image = "nix:0/nix/store/5nmh9qawhbwinzxidafjlfw68wfkh0pj-nix-image-redis.tar";
args = [ "--protected-mode" "no" ];
ports = [{
name = "redis";
containerPort = 6379;
}];
};
affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms = [{
matchExpressions = [{
key = "kubernetes.io/hostname";
operator = "In";
values = [ "atlas" ];
}];
}];
};
imports = [
./base.nix
./longhorn.nix
./esrom.nix
./ek2024.nix
./metallb.nix
./cert-manager.nix
./custom/ingress.nix
./custom/nfs-volume.nix
./custom/longhorn-volume.nix
./traefik.nix
./volumes.nix
./custom-types.nix
] ++ applications;
}